Source-Changes-HG archive

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

[src/trunk]: src add option string for no attribute cache



details:   https://anonhg.NetBSD.org/src/rev/723f007fdacb
branches:  trunk
changeset: 755052:723f007fdacb
user:      pooka <pooka%NetBSD.org@localhost>
date:      Fri May 21 11:29:42 2010 +0000

description:
add option string for no attribute cache
(foreseeing the odd event I might actually implement one some day)

diffstat:

 lib/libpuffs/puffs.h       |  4 +++-
 sys/fs/puffs/puffs_msgif.h |  3 ++-
 2 files changed, 5 insertions(+), 2 deletions(-)

diffs (42 lines):

diff -r 9e67210f41ec -r 723f007fdacb lib/libpuffs/puffs.h
--- a/lib/libpuffs/puffs.h      Fri May 21 11:20:50 2010 +0000
+++ b/lib/libpuffs/puffs.h      Fri May 21 11:29:42 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: puffs.h,v 1.115 2010/05/21 10:50:52 pooka Exp $        */
+/*     $NetBSD: puffs.h,v 1.116 2010/05/21 11:29:42 pooka Exp $        */
 
 /*
  * Copyright (c) 2005, 2006, 2007  Antti Kantee.  All Rights Reserved.
@@ -136,6 +136,7 @@
 /* kernel */
 #define        PUFFSMOPT_NAMECACHE     { "namecache", 1, PUFFS_KFLAG_NOCACHE_NAME, 1 }
 #define        PUFFSMOPT_PAGECACHE     { "pagecache", 1, PUFFS_KFLAG_NOCACHE_PAGE, 1 }
+#define        PUFFSMOPT_ATTRCACHE     { "attrcache", 1, PUFFS_KFLAG_NOCACHE_ATTR, 1 }
 #define        PUFFSMOPT_CACHE         { "cache", 1, PUFFS_KFLAG_NOCACHE, 1 }
 #define PUFFSMOPT_ALLOPS       { "allops", 0, PUFFS_KFLAG_ALLOPS, 1 }
 
@@ -145,6 +146,7 @@
 #define PUFFSMOPT_STD                                                  \
        PUFFSMOPT_NAMECACHE,                                            \
        PUFFSMOPT_PAGECACHE,                                            \
+       PUFFSMOPT_ATTRCACHE,                                            \
        PUFFSMOPT_CACHE,                                                \
        PUFFSMOPT_ALLOPS,                                               \
        PUFFSMOPT_DUMP
diff -r 9e67210f41ec -r 723f007fdacb sys/fs/puffs/puffs_msgif.h
--- a/sys/fs/puffs/puffs_msgif.h        Fri May 21 11:20:50 2010 +0000
+++ b/sys/fs/puffs/puffs_msgif.h        Fri May 21 11:29:42 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: puffs_msgif.h,v 1.72 2010/05/21 10:40:19 pooka Exp $   */
+/*     $NetBSD: puffs_msgif.h,v 1.73 2010/05/21 11:29:42 pooka Exp $   */
 
 /*
  * Copyright (c) 2005, 2006, 2007  Antti Kantee.  All Rights Reserved.
@@ -158,6 +158,7 @@
 #define PUFFS_KFLAG_IAONDEMAND         0x10    /* inactive only on demand  */
 #define PUFFS_KFLAG_LOOKUP_FULLPNBUF   0x20    /* full pnbuf in lookup     */
 #define PUFFS_KFLAG_MASK               0x3f
+#define PUFFS_KFLAG_NOCACHE_ATTR       0x40    /* no attrib cache (unused) */
 
 #define PUFFS_FHFLAG_DYNAMIC           0x01
 #define PUFFS_FHFLAG_NFSV2             0x02



Home | Main Index | Thread Index | Old Index