Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch Support for UFS1 extended attributes in GENERIC and...
details: https://anonhg.NetBSD.org/src/rev/514742903742
branches: trunk
changeset: 333650:514742903742
user: manu <manu%NetBSD.org@localhost>
date: Wed Nov 12 10:47:20 2014 +0000
description:
Support for UFS1 extended attributes in GENERIC and GENERIC-like kernels
This change just brings UFS1 extended attribute *support* in the kernel,
extended attributes are not enabled unless three conditions are met:
1) filesystem is UFS1 (newfs -O1)
2) .attribute/system and .attribute/user directories are created at fs root
3) filesystem is mounted with -o extattr
Some GENERIC kernels are obviously memory constrained, the extended
attributes options were not enabled for them, but just added commented out.
(kernel were considered memory constrained if QUOTA option was disabled)
diffstat:
sys/arch/acorn26/conf/GENERIC | 5 ++++-
sys/arch/acorn32/conf/GENERIC | 7 +++++--
sys/arch/alpha/conf/GENERIC | 7 +++++--
sys/arch/amd64/conf/GENERIC | 7 +++++--
sys/arch/amd64/conf/XEN3_DOM0 | 5 ++++-
sys/arch/amd64/conf/XEN3_DOMU | 5 ++++-
sys/arch/amiga/conf/GENERIC | 7 +++++--
sys/arch/amiga/conf/GENERIC.in | 7 +++++--
sys/arch/amigappc/conf/GENERIC | 7 +++++--
sys/arch/arc/conf/GENERIC | 7 +++++--
sys/arch/bebox/conf/GENERIC | 7 +++++--
sys/arch/cats/conf/GENERIC | 5 ++++-
sys/arch/cesfic/conf/GENERIC | 5 ++++-
sys/arch/cobalt/conf/GENERIC | 7 +++++--
sys/arch/dreamcast/conf/GENERIC | 5 ++++-
sys/arch/emips/conf/GENERIC | 7 +++++--
sys/arch/epoc32/conf/GENERIC | 7 +++++--
sys/arch/ews4800mips/conf/GENERIC | 7 +++++--
sys/arch/hp300/conf/GENERIC | 7 +++++--
sys/arch/hpcmips/conf/GENERIC | 7 +++++--
sys/arch/hpcsh/conf/GENERIC | 5 ++++-
sys/arch/hppa/conf/GENERIC | 7 +++++--
sys/arch/i386/conf/GENERIC | 7 +++++--
sys/arch/i386/conf/XEN3_DOM0 | 5 ++++-
sys/arch/i386/conf/XEN3_DOMU | 5 ++++-
sys/arch/ibmnws/conf/GENERIC | 5 ++++-
sys/arch/iyonix/conf/GENERIC | 7 +++++--
sys/arch/landisk/conf/GENERIC | 7 +++++--
sys/arch/luna68k/conf/GENERIC | 7 +++++--
sys/arch/mac68k/conf/GENERIC | 7 +++++--
sys/arch/macppc/conf/GENERIC | 7 +++++--
sys/arch/macppc/conf/MAMBO | 5 ++++-
sys/arch/macppc/conf/POWERMAC_G5 | 3 +++
sys/arch/mipsco/conf/GENERIC | 5 ++++-
sys/arch/mmeye/conf/GENERIC | 7 +++++--
sys/arch/mvme68k/conf/GENERIC | 7 +++++--
sys/arch/mvmeppc/conf/GENERIC | 7 +++++--
sys/arch/netwinder/conf/GENERIC | 5 ++++-
sys/arch/news68k/conf/GENERIC | 7 +++++--
sys/arch/newsmips/conf/GENERIC | 7 +++++--
sys/arch/next68k/conf/GENERIC | 7 +++++--
sys/arch/ofppc/conf/GENERIC | 7 +++++--
sys/arch/pmax/conf/GENERIC | 7 +++++--
sys/arch/pmax/conf/GENERIC64 | 7 +++++--
sys/arch/prep/conf/GENERIC | 7 +++++--
sys/arch/rs6000/conf/GENERIC | 7 +++++--
sys/arch/sandpoint/conf/GENERIC | 7 +++++--
sys/arch/sbmips/conf/GENERIC | 7 +++++--
sys/arch/sgimips/conf/GENERIC32_IP12 | 7 +++++--
sys/arch/sgimips/conf/GENERIC32_IP2x | 7 +++++--
sys/arch/sgimips/conf/GENERIC32_IP3x | 7 +++++--
sys/arch/shark/conf/GENERIC | 7 +++++--
sys/arch/sparc/conf/GENERIC | 7 +++++--
sys/arch/sparc/conf/TADPOLE3GX | 5 ++++-
sys/arch/sparc64/conf/GENERIC | 7 +++++--
sys/arch/sparc64/conf/NONPLUS64 | 7 +++++--
sys/arch/sun2/conf/GENERIC | 7 +++++--
sys/arch/sun3/conf/GENERIC | 7 +++++--
sys/arch/vax/conf/GENERIC | 7 +++++--
sys/arch/vax/conf/VAX780 | 5 ++++-
sys/arch/x68k/conf/GENERIC | 7 +++++--
sys/arch/zaurus/conf/GENERIC | 5 ++++-
62 files changed, 292 insertions(+), 106 deletions(-)
diffs (truncated from 1573 to 300 lines):
diff -r 35966274e8de -r 514742903742 sys/arch/acorn26/conf/GENERIC
--- a/sys/arch/acorn26/conf/GENERIC Wed Nov 12 05:08:43 2014 +0000
+++ b/sys/arch/acorn26/conf/GENERIC Wed Nov 12 10:47:20 2014 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: GENERIC,v 1.79 2014/08/23 20:26:56 dholland Exp $
+# $NetBSD: GENERIC,v 1.80 2014/11/12 10:47:20 manu Exp $
#
# GENERIC machine description file
#
@@ -72,6 +72,9 @@
options WAPBL # File system journaling support
#options UFS_DIRHASH # UFS Large Directory Hashing - Experimental
#options FFS_NO_SNAPSHOT # No FFS snapshot support
+options UFS_EXTATTR # Extended attribute support for UFS1
+options UFS_EXTATTR_AUTOSTART
+options UFS_EXTATTR_AUTOCREATE=1024
# Executable format options
options EXEC_ELF32
diff -r 35966274e8de -r 514742903742 sys/arch/acorn32/conf/GENERIC
--- a/sys/arch/acorn32/conf/GENERIC Wed Nov 12 05:08:43 2014 +0000
+++ b/sys/arch/acorn32/conf/GENERIC Wed Nov 12 10:47:20 2014 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: GENERIC,v 1.114 2014/08/23 20:26:56 dholland Exp $
+# $NetBSD: GENERIC,v 1.115 2014/11/12 10:47:20 manu Exp $
#
# GENERIC --- NetBSD/acorn32 complete configuration
#
@@ -22,7 +22,7 @@
options INCLUDE_CONFIG_FILE # embed config file in kernel binary
-#ident "GENERIC-$Revision: 1.114 $"
+#ident "GENERIC-$Revision: 1.115 $"
# estimated number of users
maxusers 32
@@ -73,6 +73,9 @@
#options UFS_DIRHASH # UFS Large Directory Hashing - Experimental
options NFSSERVER
#options FFS_NO_SNAPSHOT # No FFS snapshot support
+options UFS_EXTATTR # Extended attribute support for UFS1
+options UFS_EXTATTR_AUTOSTART
+options UFS_EXTATTR_AUTOCREATE=1024
# Networking options
diff -r 35966274e8de -r 514742903742 sys/arch/alpha/conf/GENERIC
--- a/sys/arch/alpha/conf/GENERIC Wed Nov 12 05:08:43 2014 +0000
+++ b/sys/arch/alpha/conf/GENERIC Wed Nov 12 10:47:20 2014 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: GENERIC,v 1.360 2014/08/23 20:26:56 dholland Exp $
+# $NetBSD: GENERIC,v 1.361 2014/11/12 10:47:20 manu Exp $
#
# This machine description file is used to generate the default NetBSD
# kernel.
@@ -19,7 +19,7 @@
options INCLUDE_CONFIG_FILE # embed config file in kernel binary
-ident "GENERIC-$Revision: 1.360 $"
+ident "GENERIC-$Revision: 1.361 $"
maxusers 32
@@ -98,6 +98,9 @@
#options UFS_DIRHASH # UFS Large Directory Hashing - Experimental
options NFSSERVER # Sun NFS-compatible file system server
#options FFS_NO_SNAPSHOT # No FFS snapshot support
+options UFS_EXTATTR # Extended attribute support for UFS1
+options UFS_EXTATTR_AUTOSTART
+options UFS_EXTATTR_AUTOCREATE=1024
# Networking options
#options GATEWAY # packet forwarding
diff -r 35966274e8de -r 514742903742 sys/arch/amd64/conf/GENERIC
--- a/sys/arch/amd64/conf/GENERIC Wed Nov 12 05:08:43 2014 +0000
+++ b/sys/arch/amd64/conf/GENERIC Wed Nov 12 10:47:20 2014 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: GENERIC,v 1.402 2014/11/02 23:08:40 christos Exp $
+# $NetBSD: GENERIC,v 1.403 2014/11/12 10:47:20 manu Exp $
#
# GENERIC machine description file
#
@@ -22,7 +22,7 @@
options INCLUDE_CONFIG_FILE # embed config file in kernel binary
-#ident "GENERIC-$Revision: 1.402 $"
+#ident "GENERIC-$Revision: 1.403 $"
maxusers 64 # estimated number of users
@@ -173,6 +173,9 @@
#options EXT2FS_SYSTEM_FLAGS # makes ext2fs file flags (append and
# immutable) behave as system flags.
#options FFS_NO_SNAPSHOT # No FFS snapshot support
+options UFS_EXTATTR # Extended attribute support for UFS1
+options UFS_EXTATTR_AUTOSTART
+options UFS_EXTATTR_AUTOCREATE=1024
# Networking options
#options GATEWAY # packet forwarding
diff -r 35966274e8de -r 514742903742 sys/arch/amd64/conf/XEN3_DOM0
--- a/sys/arch/amd64/conf/XEN3_DOM0 Wed Nov 12 05:08:43 2014 +0000
+++ b/sys/arch/amd64/conf/XEN3_DOM0 Wed Nov 12 10:47:20 2014 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: XEN3_DOM0,v 1.110 2014/10/18 16:56:51 uebayasi Exp $
+# $NetBSD: XEN3_DOM0,v 1.111 2014/11/12 10:47:20 manu Exp $
include "arch/amd64/conf/std.xen"
@@ -115,6 +115,9 @@
#options UFS_DIRHASH # UFS Large Directory Hashing - Experimental
options NFSSERVER # Network File System server
#options FFS_NO_SNAPSHOT # No FFS snapshot support
+options UFS_EXTATTR # Extended attribute support for UFS1
+options UFS_EXTATTR_AUTOSTART
+options UFS_EXTATTR_AUTOCREATE=1024
#options EXT2FS_SYSTEM_FLAGS # makes ext2fs file flags (append and
# immutable) behave as system flags.
diff -r 35966274e8de -r 514742903742 sys/arch/amd64/conf/XEN3_DOMU
--- a/sys/arch/amd64/conf/XEN3_DOMU Wed Nov 12 05:08:43 2014 +0000
+++ b/sys/arch/amd64/conf/XEN3_DOMU Wed Nov 12 10:47:20 2014 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: XEN3_DOMU,v 1.58 2014/09/19 15:24:24 christos Exp $
+# $NetBSD: XEN3_DOMU,v 1.59 2014/11/12 10:47:20 manu Exp $
include "arch/amd64/conf/std.xen"
@@ -109,6 +109,9 @@
#options UFS_DIRHASH # UFS Large Directory Hashing - Experimental
options NFSSERVER # Network File System server
#options FFS_NO_SNAPSHOT # No FFS snapshot support
+options UFS_EXTATTR # Extended attribute support for UFS1
+options UFS_EXTATTR_AUTOSTART
+options UFS_EXTATTR_AUTOCREATE=1024
#options EXT2FS_SYSTEM_FLAGS # makes ext2fs file flags (append and
# immutable) behave as system flags.
diff -r 35966274e8de -r 514742903742 sys/arch/amiga/conf/GENERIC
--- a/sys/arch/amiga/conf/GENERIC Wed Nov 12 05:08:43 2014 +0000
+++ b/sys/arch/amiga/conf/GENERIC Wed Nov 12 10:47:20 2014 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: GENERIC,v 1.309 2014/08/23 20:26:56 dholland Exp $
+# $NetBSD: GENERIC,v 1.310 2014/11/12 10:47:21 manu Exp $
#
# This file was automatically created.
# Changes will be lost when make is run in this directory.
@@ -29,7 +29,7 @@
options INCLUDE_CONFIG_FILE # embed config file in kernel binary
-#ident "GENERIC-$Revision: 1.309 $"
+#ident "GENERIC-$Revision: 1.310 $"
makeoptions COPTS="-O2 -fno-reorder-blocks" # see share/mk/sys.mk
@@ -129,6 +129,9 @@
#options UFS_DIRHASH # UFS Large Directory Hashing - Experimental
options NFSSERVER # Network File System server side code
#options FFS_NO_SNAPSHOT # No FFS snapshot support
+options UFS_EXTATTR # Extended attribute support for UFS1
+options UFS_EXTATTR_AUTOSTART
+options UFS_EXTATTR_AUTOCREATE=1024
#options EXT2FS_SYSTEM_FLAGS # makes ext2fs file flags (append and
# immutable) behave as system flags.
diff -r 35966274e8de -r 514742903742 sys/arch/amiga/conf/GENERIC.in
--- a/sys/arch/amiga/conf/GENERIC.in Wed Nov 12 05:08:43 2014 +0000
+++ b/sys/arch/amiga/conf/GENERIC.in Wed Nov 12 10:47:20 2014 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: GENERIC.in,v 1.127 2014/08/23 20:26:56 dholland Exp $
+# $NetBSD: GENERIC.in,v 1.128 2014/11/12 10:47:21 manu Exp $
#
##
# GENERIC machine description file
@@ -52,7 +52,7 @@
options INCLUDE_CONFIG_FILE # embed config file in kernel binary
-#ident "GENERIC-$Revision: 1.127 $"
+#ident "GENERIC-$Revision: 1.128 $"
m4_ifdef(`INSTALL_CONFIGURATION', `m4_dnl
makeoptions COPTS="-Os"
@@ -169,6 +169,9 @@
#options UFS_DIRHASH # UFS Large Directory Hashing - Experimental
options NFSSERVER # Network File System server side code
#options FFS_NO_SNAPSHOT # No FFS snapshot support
+options UFS_EXTATTR # Extended attribute support for UFS1
+options UFS_EXTATTR_AUTOSTART
+options UFS_EXTATTR_AUTOCREATE=1024
')m4_dnl
#options EXT2FS_SYSTEM_FLAGS # makes ext2fs file flags (append and
diff -r 35966274e8de -r 514742903742 sys/arch/amigappc/conf/GENERIC
--- a/sys/arch/amigappc/conf/GENERIC Wed Nov 12 05:08:43 2014 +0000
+++ b/sys/arch/amigappc/conf/GENERIC Wed Nov 12 10:47:20 2014 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: GENERIC,v 1.22 2014/08/23 20:26:56 dholland Exp $
+# $NetBSD: GENERIC,v 1.23 2014/11/12 10:47:21 manu Exp $
#
# GENERIC machine description file
#
@@ -22,7 +22,7 @@
options INCLUDE_CONFIG_FILE # embed config file in kernel binary
-#ident "GENERIC-$Revision: 1.22 $"
+#ident "GENERIC-$Revision: 1.23 $"
maxusers 8
@@ -129,6 +129,9 @@
#options UFS_DIRHASH # UFS Large Directory Hashing - Experimental
options NFSSERVER # Network File System server side code
#options FFS_NO_SNAPSHOT # No FFS snapshot support
+options UFS_EXTATTR # Extended attribute support for UFS1
+options UFS_EXTATTR_AUTOSTART
+options UFS_EXTATTR_AUTOCREATE=1024
#options EXT2FS_SYSTEM_FLAGS # makes ext2fs file flags (append and
# immutable) behave as system flags.
diff -r 35966274e8de -r 514742903742 sys/arch/arc/conf/GENERIC
--- a/sys/arch/arc/conf/GENERIC Wed Nov 12 05:08:43 2014 +0000
+++ b/sys/arch/arc/conf/GENERIC Wed Nov 12 10:47:20 2014 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: GENERIC,v 1.182 2014/08/23 20:26:56 dholland Exp $
+# $NetBSD: GENERIC,v 1.183 2014/11/12 10:47:21 manu Exp $
#
# GENERIC machine description file
#
@@ -22,7 +22,7 @@
options INCLUDE_CONFIG_FILE # embed config file in kernel binary
-#ident "GENERIC-$Revision: 1.182 $"
+#ident "GENERIC-$Revision: 1.183 $"
maxusers 32 # estimated number of users
@@ -128,6 +128,9 @@
#options EXT2FS_SYSTEM_FLAGS # makes ext2fs file flags (append and
# immutable) behave as system flags.
#options FFS_NO_SNAPSHOT # No FFS snapshot support
+options UFS_EXTATTR # Extended attribute support for UFS1
+options UFS_EXTATTR_AUTOSTART
+options UFS_EXTATTR_AUTOCREATE=1024
# Networking options
#options GATEWAY # IP packet forwarding
diff -r 35966274e8de -r 514742903742 sys/arch/bebox/conf/GENERIC
--- a/sys/arch/bebox/conf/GENERIC Wed Nov 12 05:08:43 2014 +0000
+++ b/sys/arch/bebox/conf/GENERIC Wed Nov 12 10:47:20 2014 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: GENERIC,v 1.143 2014/08/23 20:26:57 dholland Exp $
+# $NetBSD: GENERIC,v 1.144 2014/11/12 10:47:21 manu Exp $
#
# GENERIC machine description file
#
@@ -22,7 +22,7 @@
options INCLUDE_CONFIG_FILE # embed config file in kernel binary
-#ident "GENERIC-$Revision: 1.143 $"
+#ident "GENERIC-$Revision: 1.144 $"
maxusers 32
@@ -105,6 +105,9 @@
#options UFS_DIRHASH # UFS Large Directory Hashing - Experimental
#options NFSSERVER # Network File System server
#options FFS_NO_SNAPSHOT # No FFS snapshot support
+options UFS_EXTATTR # Extended attribute support for UFS1
+options UFS_EXTATTR_AUTOSTART
+options UFS_EXTATTR_AUTOCREATE=1024
#options EXT2FS_SYSTEM_FLAGS # makes ext2fs file flags (append and
# immutable) behave as system flags.
#options APPLE_UFS # Apple UFS support in FFS
diff -r 35966274e8de -r 514742903742 sys/arch/cats/conf/GENERIC
--- a/sys/arch/cats/conf/GENERIC Wed Nov 12 05:08:43 2014 +0000
+++ b/sys/arch/cats/conf/GENERIC Wed Nov 12 10:47:20 2014 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: GENERIC,v 1.153 2014/08/23 20:26:57 dholland Exp $
+# $NetBSD: GENERIC,v 1.154 2014/11/12 10:47:21 manu Exp $
#
# GENERIC machine description file
#
@@ -81,6 +81,9 @@
options WAPBL # File system journaling support
#options UFS_DIRHASH # UFS Large Directory Hashing - Experimental
#options FFS_NO_SNAPSHOT # No FFS snapshot support
+options UFS_EXTATTR # Extended attribute support for UFS1
+options UFS_EXTATTR_AUTOSTART
+options UFS_EXTATTR_AUTOCREATE=1024
# Networking options
Home |
Main Index |
Thread Index |
Old Index