svn commit: r253276 - head/sys/fs/fuse
Pedro F. Giffuni
pfg at FreeBSD.org
Fri Jul 12 17:23:00 UTC 2013
Author: pfg
Date: Fri Jul 12 17:22:59 2013
New Revision: 253276
URL: http://svnweb.freebsd.org/changeset/base/253276
Log:
Add creation timestamp (birthtime) support for fuse.
This is based on similar support in MacFUSE.
Modified:
head/sys/fs/fuse/fuse_internal.h
head/sys/fs/fuse/fuse_kernel.h
Modified: head/sys/fs/fuse/fuse_internal.h
==============================================================================
--- head/sys/fs/fuse/fuse_internal.h Fri Jul 12 17:11:30 2013 (r253275)
+++ head/sys/fs/fuse/fuse_internal.h Fri Jul 12 17:22:59 2013 (r253276)
@@ -223,6 +223,8 @@ fuse_internal_attr_fat2vat(struct mount
vap->va_mtime.tv_nsec = fat->mtimensec;
vap->va_ctime.tv_sec = fat->ctime;
vap->va_ctime.tv_nsec = fat->ctimensec;
+ vap->va_birthtime.tv_sec = fat->crtime;
+ vap->va_birthtime.tv_nsec = fat->crtimensec;
vap->va_blocksize = PAGE_SIZE;
vap->va_type = IFTOVT(fat->mode);
Modified: head/sys/fs/fuse/fuse_kernel.h
==============================================================================
--- head/sys/fs/fuse/fuse_kernel.h Fri Jul 12 17:11:30 2013 (r253275)
+++ head/sys/fs/fuse/fuse_kernel.h Fri Jul 12 17:22:59 2013 (r253276)
@@ -69,9 +69,15 @@ struct fuse_attr {
__u64 atime;
__u64 mtime;
__u64 ctime;
+#ifdef __FreeBSD__
+ __u64 crtime;
+#endif
__u32 atimensec;
__u32 mtimensec;
__u32 ctimensec;
+#ifdef __FreeBSD__
+ __u32 crtimensec;
+#endif
__u32 mode;
__u32 nlink;
__u32 uid;
More information about the svn-src-head
mailing list