Miklos Szeredi <miklos@xxxxxxxxxx> writes: > Sage Weil <sage@xxxxxxxxxxx> writes: > >> Hi Miklos, >> >> I found some time to track down the O_CREAT error code issue. Patch is >> below. Does this look correct? >> >> I was reproducing with >> >> ceph-fuse mnt >> mkdir -p mnt/a >> cd mnt >> .../pjd-fstest-20080816/fstest -u 65534 -g 65534 open a/foo O_RDONLY,O_CREAT 0644 >> >> EACCES is expected, ENOENT was returned instead. > > I don't quite undersdand what is happending here. > > Why does ceph-fuse return ENOENT here? Returning ENOENT for O_CREAT > only makes sense if the parent directory doesn't exist, but that's not > the case here. More specifically, the initial lookup will return ENOENT, that's fine. But in that case fuse_atomic_open() will do a FUSE_CREATE for which ENOENT is not the right answer. Can you post the relevant part from the filesytem's debug log? Thanks, Miklos -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html