No subject
Tue Jan 31 03:57:03 CST 2012
using "struct fuse_operations", not "struct fuse_lowlevel_ops".
So, fuse_lib_setattr() would be the handler for it in libfuse. And, from
the following part, it seems to require the both of MTIME and ATIME to
call ntfs-3g's ->utime handler.
I don't know whether it is limitation or bug in fuse_operations.
Any ideas?
if (!err &&
(valid & (FUSE_SET_ATTR_ATIME | FUSE_SET_ATTR_MTIME)) ==
(FUSE_SET_ATTR_ATIME | FUSE_SET_ATTR_MTIME)) {
struct timespec tv[2];
tv[0].tv_sec = attr->st_atime;
tv[0].tv_nsec = ST_ATIM_NSEC(attr);
tv[1].tv_sec = attr->st_mtime;
tv[1].tv_nsec = ST_MTIM_NSEC(attr);
err = fuse_fs_utimens(f->fs, path, tv);
}
Thanks.
--
OGAWA Hirofumi <hirofumi at mail.parknet.co.jp>
More information about the xfs
mailing list