o Rename "namespace" argument to "attrnamespace" as namespace is a C++

reserved word.

Submitted by:		jkh
Obtained from:	TrustedBSD Project
This commit is contained in:
Robert Watson 2001-03-19 06:00:41 +00:00
parent db089ead81
commit de5660b047
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=74441
2 changed files with 13 additions and 13 deletions

View File

@ -47,13 +47,13 @@
.Nm
.Cm enable
.Ar path
.Ar namespace
.Ar attrnamespace
.Ar attrname
.Ar attrfile
.Nm
.Cm disable
.Ar path
.Ar namespace
.Ar attrnamespace
.Ar attrname
.Sh DESCRIPTION
.Nm
@ -104,11 +104,11 @@ from denying attribute service.
.Pp
This file should not exist before running
.Cm initattr .
.It Cm enable Ar path namespace attrname attrfile
.It Cm enable Ar path attrnamespace attrname attrfile
Enable an attribute named
.Ar attrname
in the namespace
.Ar namespace
.Ar attrnamespace
on the file system identified using
.Ar path ,
and backed by initialized attribute file
@ -119,11 +119,11 @@ The backing file must have been initialized using
before its first use.
Attributes must have been started on the file system prior to the
enabling of any attributes.
.It Cm disable Ar path namespace attrname
.It Cm disable Ar path attrnamespace attrname
Disable the attributed named
.Ar attrname
in namespace
.Ar namespace
.Ar attrnamespace
on the file system identified by
.Ar path .
Available namespaces are "user" and "system".

View File

@ -57,8 +57,8 @@ usage(void)
" extattrctl start [path]\n"
" extattrctl stop [path]\n"
" extattrctl initattr [-f] [-p path] [attrsize] [attrfile]\n"
" extattrctl enable [path] [namespace] [attrname] [attrfile]\n"
" extattrctl disable [path] [namespace] [attrname]\n");
" extattrctl enable [path] [attrnamespace] [attrname] [attrfile]\n"
" extattrctl disable [path] [attrnamespace] [attrname]\n");
exit(-1);
}
@ -159,7 +159,7 @@ initattr(int argc, char *argv[])
int
main(int argc, char *argv[])
{
int error = 0, namespace;
int error = 0, attrnamespace;
if (argc < 2)
usage();
@ -187,13 +187,13 @@ main(int argc, char *argv[])
} else if (!strcmp(argv[1], "enable")) {
if (argc != 6)
usage();
error = extattr_string_to_namespace(argv[3], &namespace);
error = extattr_string_to_namespace(argv[3], &attrnamespace);
if (error) {
perror("extattrctl enable");
return (-1);
}
error = extattrctl(argv[2], UFS_EXTATTR_CMD_ENABLE, argv[5],
namespace, argv[4]);
attrnamespace, argv[4]);
if (error) {
perror("extattrctl enable");
return (-1);
@ -202,13 +202,13 @@ main(int argc, char *argv[])
} else if (!strcmp(argv[1], "disable")) {
if (argc != 5)
usage();
error = extattr_string_to_namespace(argv[3], &namespace);
error = extattr_string_to_namespace(argv[3], &attrnamespace);
if (error) {
perror("extattrctl disable");
return (-1);
}
error = extattrctl(argv[2], UFS_EXTATTR_CMD_DISABLE, NULL,
namespace, argv[4]);
attrnamespace, argv[4]);
if (error) {
perror("extattrctl disable");
return (-1);