FreeBSD Bugzilla – Attachment 58351 Details for
Bug 87966
[patch] newfs(8): introduce -A flag for newfs to enable ACLs
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.70 KB, created by
Andre.Albsmeier
on 2005-10-25 06:50:18 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Andre.Albsmeier
Created:
2005-10-25 06:50:18 UTC
Size:
1.70 KB
patch
obsolete
>--- ./newfs.c.ORI Tue Mar 1 09:57:07 2005 >+++ ./newfs.c Tue Oct 25 07:31:41 2005 >@@ -111,6 +111,7 @@ > */ > #define NFPI 4 > >+int Aflag; /* enable ACLs for file system */ > int Lflag; /* add a volume label */ > int Nflag; /* run without writing file system */ > int Oflag = 2; /* file system format (1 => UFS1, 2 => UFS2) */ >@@ -156,8 +157,11 @@ > off_t mediasize; > > while ((ch = getopt(argc, argv, >- "EL:NO:RS:T:Ua:b:c:d:e:f:g:h:i:lm:no:s:")) != -1) >+ "AEL:NO:RS:T:Ua:b:c:d:e:f:g:h:i:lm:no:s:")) != -1) > switch (ch) { >+ case 'A': >+ Aflag = 1; >+ break; > case 'E': > Eflag++; > break; >--- ./mkfs.c.ORI Tue Mar 1 09:57:07 2005 >+++ ./mkfs.c Tue Oct 25 07:30:47 2005 >@@ -131,6 +131,8 @@ > } > sblock.fs_old_flags = FS_FLAGS_UPDATED; > sblock.fs_flags = 0; >+ if (Aflag) >+ sblock.fs_flags |= FS_ACLS; > if (Uflag) > sblock.fs_flags |= FS_DOSOFTDEP; > if (Lflag) >--- ./newfs.h.ORI Tue Mar 1 09:57:07 2005 >+++ ./newfs.h Tue Oct 25 07:31:32 2005 >@@ -43,6 +43,7 @@ > /* > * variables set up by front end. > */ >+extern int Aflag; /* enable ACLs for file system */ > extern int Lflag; /* add a volume label */ > extern int Nflag; /* run mkfs without writing file system */ > extern int Oflag; /* build UFS1 format file system */ >--- ./newfs.8.ORI Tue Mar 1 09:57:07 2005 >+++ ./newfs.8 Tue Oct 25 07:33:51 2005 >@@ -36,7 +36,7 @@ > .Nd construct a new UFS1/UFS2 file system > .Sh SYNOPSIS > .Nm >-.Op Fl NUln >+.Op Fl ANUln > .Op Fl L Ar volname > .Op Fl O Ar filesystem-type > .Op Fl S Ar sector-size >@@ -77,6 +77,8 @@ > .Pp > The following options define the general layout policies: > .Bl -tag -width indent >+.It Fl A >+Enable ACLs on the new file system. > .It Fl L Ar volname > Add a volume label to the new file system. > .It Fl N
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 87966
: 58351