equal
deleted
inserted
replaced
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))) |