Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/fs/msdosfs Report the SF_ARCHIVED file flag if set.



details:   https://anonhg.NetBSD.org/src/rev/34acefff3a42
branches:  trunk
changeset: 778526:34acefff3a42
user:      njoly <njoly%NetBSD.org@localhost>
date:      Mon Apr 02 07:30:22 2012 +0000

description:
Report the SF_ARCHIVED file flag if set.

diffstat:

 sys/fs/msdosfs/msdosfs_vnops.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 1e26dc152e12 -r 34acefff3a42 sys/fs/msdosfs/msdosfs_vnops.c
--- a/sys/fs/msdosfs/msdosfs_vnops.c    Mon Apr 02 07:27:43 2012 +0000
+++ b/sys/fs/msdosfs/msdosfs_vnops.c    Mon Apr 02 07:30:22 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: msdosfs_vnops.c,v 1.80 2012/03/13 18:40:38 elad Exp $  */
+/*     $NetBSD: msdosfs_vnops.c,v 1.81 2012/04/02 07:30:22 njoly Exp $ */
 
 /*-
  * Copyright (C) 1994, 1995, 1997 Wolfgang Solfrank.
@@ -48,7 +48,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: msdosfs_vnops.c,v 1.80 2012/03/13 18:40:38 elad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: msdosfs_vnops.c,v 1.81 2012/04/02 07:30:22 njoly Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -307,6 +307,7 @@
        }
        vap->va_flags = 0;
        if ((dep->de_Attributes & ATTR_ARCHIVE) == 0)
+               vap->va_flags |= SF_ARCHIVED;
                vap->va_mode  |= S_ARCH1;
        vap->va_gen = 0;
        vap->va_blocksize = pmp->pm_bpcluster;



Home | Main Index | Thread Index | Old Index