From owner-svn-src-head@FreeBSD.ORG Fri Jul 12 17:23:00 2013 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 5B9AFE4D; Fri, 12 Jul 2013 17:23:00 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 4D6CF119D; Fri, 12 Jul 2013 17:23:00 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r6CHN0V8083295; Fri, 12 Jul 2013 17:23:00 GMT (envelope-from pfg@svn.freebsd.org) Received: (from pfg@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r6CHMxAs083287; Fri, 12 Jul 2013 17:22:59 GMT (envelope-from pfg@svn.freebsd.org) Message-Id: <201307121722.r6CHMxAs083287@svn.freebsd.org> From: "Pedro F. Giffuni" Date: Fri, 12 Jul 2013 17:22:59 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r253276 - head/sys/fs/fuse X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Jul 2013 17:23:00 -0000 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;