mirror of
https://git.openafs.org/openafs.git
synced 2025-01-31 05:27:44 +00:00
STABLE14-nosettime-20050317
Make -nosettime default for afsd. Use -settime to get old behavior. (cherry picked from commit 54119c1e0e479b32fc77db42ea1a308621804d7e)
This commit is contained in:
parent
0e1e96638d
commit
036f4cd5c9
9
NEWS
9
NEWS
@ -1,9 +1,14 @@
|
|||||||
OpenAFS News -- history of user-visible changes. April 10, 2003.
|
OpenAFS News -- history of user-visible changes.
|
||||||
|
|
||||||
* Changes incorporated in OpenAFS 1.3
|
* Changes incorporated in OpenAFS 1.3
|
||||||
|
|
||||||
|
** -nosettime is now the default for afsd. Use "-settime" to get the
|
||||||
|
old behavior.
|
||||||
|
|
||||||
|
** OpenBSD is now supported.
|
||||||
|
|
||||||
** Mountpoint directory information is now only faked for cross-cell
|
** Mountpoint directory information is now only faked for cross-cell
|
||||||
mountpoits when using the -fakestat flag (e.g. for the directories
|
mountpoints when using the -fakestat flag (e.g. for the directories
|
||||||
under /afs, but not for most other volumes mounted inside the cell).
|
under /afs, but not for most other volumes mounted inside the cell).
|
||||||
The -fakestat-all switch can be used to fake information for all
|
The -fakestat-all switch can be used to fake information for all
|
||||||
mountpoints.
|
mountpoints.
|
||||||
|
@ -29,7 +29,8 @@
|
|||||||
* -cachedir The base directory for the workstation cache.
|
* -cachedir The base directory for the workstation cache.
|
||||||
* -mountdir The directory on which the AFS is to be mounted.
|
* -mountdir The directory on which the AFS is to be mounted.
|
||||||
* -confdir The configuration directory .
|
* -confdir The configuration directory .
|
||||||
* -nosettime Don't keep checking the time to avoid drift.
|
* -nosettime Don't keep checking the time to avoid drift (default).
|
||||||
|
* -settime Keep checking the time to avoid drift.
|
||||||
* -verbose Be chatty.
|
* -verbose Be chatty.
|
||||||
* -debug Print out additional debugging info.
|
* -debug Print out additional debugging info.
|
||||||
* -kerndev [OBSOLETE] The kernel device for AFS.
|
* -kerndev [OBSOLETE] The kernel device for AFS.
|
||||||
@ -242,7 +243,7 @@ int sawDCacheSize = 0;
|
|||||||
int sawBiod = 0;
|
int sawBiod = 0;
|
||||||
char cacheMountDir[1024]; /*Mount directory for AFS */
|
char cacheMountDir[1024]; /*Mount directory for AFS */
|
||||||
char rootVolume[64] = "root.afs"; /*AFS root volume name */
|
char rootVolume[64] = "root.afs"; /*AFS root volume name */
|
||||||
afs_int32 cacheSetTime = 1; /*Keep checking time to avoid drift? */
|
afs_int32 cacheSetTime = FALSE; /*Keep checking time to avoid drift? */
|
||||||
afs_int32 isHomeCell; /*Is current cell info for the home cell? */
|
afs_int32 isHomeCell; /*Is current cell info for the home cell? */
|
||||||
#ifdef AFS_XBSD_ENV
|
#ifdef AFS_XBSD_ENV
|
||||||
int createAndTrunc = O_RDWR | O_CREAT | O_TRUNC; /*Create & truncate on open */
|
int createAndTrunc = O_RDWR | O_CREAT | O_TRUNC; /*Create & truncate on open */
|
||||||
@ -1292,7 +1293,7 @@ AfsdbLookupHandler()
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
mainproc(as, arock)
|
mainproc(as, arock)
|
||||||
register struct cmd_syndesc *as;
|
struct cmd_syndesc *as;
|
||||||
char *arock;
|
char *arock;
|
||||||
{
|
{
|
||||||
static char rn[] = "afsd"; /*Name of this routine */
|
static char rn[] = "afsd"; /*Name of this routine */
|
||||||
@ -1501,6 +1502,10 @@ mainproc(as, arock)
|
|||||||
/* -rxbind */
|
/* -rxbind */
|
||||||
enable_rxbind = 1;
|
enable_rxbind = 1;
|
||||||
}
|
}
|
||||||
|
if (as->parms[32].items) {
|
||||||
|
/* -settime */
|
||||||
|
cacheSetTime = TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -2110,7 +2115,7 @@ main(argc, argv)
|
|||||||
int argc;
|
int argc;
|
||||||
char **argv;
|
char **argv;
|
||||||
{
|
{
|
||||||
register struct cmd_syndesc *ts;
|
struct cmd_syndesc *ts;
|
||||||
|
|
||||||
ts = cmd_CreateSyntax(NULL, mainproc, NULL, "start AFS");
|
ts = cmd_CreateSyntax(NULL, mainproc, NULL, "start AFS");
|
||||||
cmd_AddParm(ts, "-blocks", CMD_SINGLE, CMD_OPTIONAL,
|
cmd_AddParm(ts, "-blocks", CMD_SINGLE, CMD_OPTIONAL,
|
||||||
@ -2179,6 +2184,8 @@ main(argc, argv)
|
|||||||
cmd_AddParm(ts, "-backuptree", CMD_FLAG, CMD_OPTIONAL,
|
cmd_AddParm(ts, "-backuptree", CMD_FLAG, CMD_OPTIONAL,
|
||||||
"Prefer backup volumes for mointpoints in backup volumes");
|
"Prefer backup volumes for mointpoints in backup volumes");
|
||||||
cmd_AddParm(ts, "-rxbind", CMD_FLAG, CMD_OPTIONAL, "Bind the Rx socket (one interface only)");
|
cmd_AddParm(ts, "-rxbind", CMD_FLAG, CMD_OPTIONAL, "Bind the Rx socket (one interface only)");
|
||||||
|
cmd_AddParm(ts, "-settime", CMD_FLAG, CMD_OPTIONAL,
|
||||||
|
"don't set the time");
|
||||||
return (cmd_Dispatch(argc, argv));
|
return (cmd_Dispatch(argc, argv));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user