only send setattr if attr changed

for hidden, system, and archive, first check with our cached attributes
and if the values are the same, ignore this setattr
This commit is contained in:
Olga Kornievskaia 2012-04-02 18:41:37 -04:00
parent 41389178a3
commit 9135e07221
2 changed files with 18 additions and 7 deletions

View file

@ -584,7 +584,7 @@ static int handle_open(nfs41_upcall *upcall)
args->mode = info.mode;
args->changeattr = info.change;
} else {
nfs41_file_info createattrs;
nfs41_file_info createattrs = { 0 };
uint32_t create = 0, createhowmode = 0, lookup_status = status;
if (!lookup_status && (args->disposition == FILE_OVERWRITE ||