From 00551d88aa21e6c8c13ed9073431672e89dd3474 Mon Sep 17 00:00:00 2001 From: Jason Edgecombe Date: Thu, 29 Nov 2007 05:47:48 +0000 Subject: [PATCH] DEVEL15-man-page-fs-sysname-improvements-20071128 Update the fs sysname man page to document the behavior of multiple @sys values. (cherry picked from commit 3be37f4d1ca1e3fae238e58d07708577d5653ae2) --- doc/man-pages/README | 3 --- doc/man-pages/pod1/fs_sysname.pod | 43 ++++++++++++++++++++++++------- 2 files changed, 34 insertions(+), 12 deletions(-) diff --git a/doc/man-pages/README b/doc/man-pages/README index a14acef01..4f789c612 100644 --- a/doc/man-pages/README +++ b/doc/man-pages/README @@ -220,9 +220,6 @@ Known Problems * Some of the documentation in fs getserverprefs needs minor updates to reflect what happens in the dynroot case. - * fs sysname documentation needs to include the possibility of setting - multiple sysnames and the resulting behavior. - * bos listkeys and the KeyFile man page assume that you're using the kaserver. diff --git a/doc/man-pages/pod1/fs_sysname.pod b/doc/man-pages/pod1/fs_sysname.pod index b10c667f6..b3026a646 100644 --- a/doc/man-pages/pod1/fs_sysname.pod +++ b/doc/man-pages/pod1/fs_sysname.pod @@ -7,9 +7,9 @@ fs_sysname - Reports or sets the CPU/operating system type =for html
-B S<<< [B<-newsys> >] >>> [B<-help>] +B S<<< [B<-newsys> >]+ >>> [B<-help>] -B S<<< [B<-n> >] >>> [B<-h>] +B S<<< [B<-n> >]+ >>> [B<-h>] =for html
@@ -19,7 +19,7 @@ B S<<< [B<-n> >] >>> [B<-h>] The B command sets or displays the local machine's CPU/operating system type as recorded in kernel memory. The Cache Manager substitutes the string for the I<@sys> variable which can occur in AFS -pathnames; the I and I and I explain how using I<@sys> can simplify cell configuration. It is best to use it sparingly, however, because it can make the effect of changing directories unpredictable. @@ -42,10 +42,14 @@ must verify that the correct string is set for the new identity also. =item B<-newsys> > -Sets the CPU/operating system indicator string for the local machine. If -this argument is omitted, the output displays the current setting -instead. AFS uses a standardized set of strings; consult the I or I. +Sets the CPU/operating system indicator string for the local machine. This +option may be used multiple times in the same invocation, which sets I<@sys> +to an array of values. When I<@sys> contains an array of values, the first +value that matches a path is used. + +If this argument is omitted, the output displays the current setting +instead. AFS uses a standardized set of strings; consult the I or I. =item B<-help> @@ -61,6 +65,10 @@ system type in the following format: Current sysname is '' +When the B<-newsys> argument is included, the output is the following: + + fs: new sysname list set. + =head1 EXAMPLES The following example shows the output produced on a Sun SPARCStation @@ -74,6 +82,18 @@ The following command defines a machine to be a IBM RS/6000 running AIX % fs sysname -newsys rs_aix42 +The following command defines a machine to be Mac OS X PPC and a +custom type 'foo'. The second command queries the new sysname: + + % fs sysname -newsys ppc_darwin_80 -newsys foo + fs: new sysname list set. + % fs sysname + Current sysname list is 'ppc_darwin_80' 'foo' + +If I<@sys> is C, then C will try to change +to the C directory. If the C directory +doesn't exist, then the C directory is tried. + =head1 PRIVILEGE REQUIRED To display the current setting, no privilege is required. To include the @@ -85,9 +105,14 @@ as the local superuser C. L, L -I +I +L + +I +L -I +For the list of assigned standard sysname values, see +L =head1 COPYRIGHT -- 2.39.5