cwfs: make sure we do a full dump after toggling noatime
This commit is contained in:
parent
42cf4e2371
commit
ffc58b3429
|
@ -85,6 +85,7 @@ ulong authdebugflag;
|
|||
int noattach; /* attach is disabled */
|
||||
int noauth; /* auth is disable */
|
||||
int noatime; /* atime is disabled */
|
||||
int noatimeset; /* noatime was changed (reset after dump) */
|
||||
int wstatallow; /* set to circumvent wstat permissions */
|
||||
int writeallow; /* set to circumvent write permissions */
|
||||
int duallow; /* single user to allow du */
|
||||
|
|
|
@ -697,6 +697,7 @@ void
|
|||
cmd_noatime(int, char *[])
|
||||
{
|
||||
noatime = !noatime;
|
||||
noatimeset++;
|
||||
print("atime %s\n", noatime ? "disabled" : "enabled");
|
||||
}
|
||||
|
||||
|
|
|
@ -21,9 +21,8 @@ static Device* confdev;
|
|||
static int copyworm = 0, copydev = 0;
|
||||
static char *src, *dest;
|
||||
|
||||
static int noauthset = 0;
|
||||
static int noatimeset = 0;
|
||||
static int readonlyset = 0;
|
||||
static int noauthset;
|
||||
static int readonlyset;
|
||||
static int resetparams;
|
||||
|
||||
Fspar fspar[] = {
|
||||
|
@ -613,7 +612,6 @@ start:
|
|||
|
||||
putbuf(p);
|
||||
f.modconf = f.newconf = 0;
|
||||
noauthset = noatimeset = readonlyset = 0;
|
||||
goto start;
|
||||
}
|
||||
putbuf(p);
|
||||
|
|
|
@ -1491,7 +1491,8 @@ cfsdump(Filsys *fs)
|
|||
if(chatty)
|
||||
fprint(2, "cwroot %lld", (Wideoff)orba);
|
||||
cons.noage = 1;
|
||||
cw->all = cw->allflag | noatime;
|
||||
cw->all = cw->allflag | noatime | noatimeset;
|
||||
noatimeset = 0;
|
||||
rba = cwrecur(cw, orba, Tsuper, 0, QPROOT);
|
||||
if(rba == 0)
|
||||
rba = orba;
|
||||
|
|
Loading…
Reference in a new issue