cache update after set
All checks were successful
Source release / source-package (push) Successful in 45s
All checks were successful
Source release / source-package (push) Successful in 45s
This commit is contained in:
@@ -726,8 +726,16 @@ int tru_set_inherited_mask(int volume, uint8 *unixname,
|
||||
if (seteuid(0)) {}
|
||||
result=put_trustee_to_disk(volume, stb->st_dev, stb->st_ino, 0L, new_mask);
|
||||
(void)reseteuid();
|
||||
if (!result)
|
||||
if (!result) {
|
||||
/* Keep the in-memory trustee cache in sync with the value just
|
||||
* written to disk. Otherwise a client which reads the IRM again
|
||||
* in the same server run still sees the old cached mask until the
|
||||
* node is rebuilt or the server is restarted.
|
||||
*/
|
||||
tr->inherited_mask = new_mask;
|
||||
tr->eff_rights = -1;
|
||||
tru_vol_sernum(volume, 1); /* trustee sernum needs updated */
|
||||
}
|
||||
return(result);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user