src/dbfs/fileop.c
changeset 35 4f10421681d2
parent 31 7804cd7b5cd5
child 36 56427f22e969
equal deleted inserted replaced
34:460f995d3769 35:4f10421681d2
    37     )
    37     )
    38         SERROR(err = EIO);
    38         SERROR(err = EIO);
    39 
    39 
    40     // is it a dir?
    40     // is it a dir?
    41     if (_dbfs_mode(type) != S_IFREG)
    41     if (_dbfs_mode(type) != S_IFREG)
    42         EERROR(err = ENOENT, "wrong type: %s", type);
    42         EERROR(err = EINVAL, "wrong type: %s", type);
    43     
    43     
    44     INFO("[dbfs.open %p:%p] -> ino=%lu, type=%s", fop, fop->base.req, (unsigned long int) fop->base.ino, type);
    44     INFO("[dbfs.open %p:%p] -> ino=%lu, type=%s", fop, fop->base.req, (unsigned long int) fop->base.ino, type);
    45     
    45     
    46     // open_fn done, do the open_reply
    46     // open_fn done, do the open_reply
    47     if ((err = dbfs_op_open_reply(&fop->base)))
    47     if ((err = dbfs_op_open_reply(&fop->base)))