open: use suppattr_exclcreat to mask exclusive create attributes

Signed-off-by: Casey Bodley <cbodley@citi.umich.edu>
This commit is contained in:
Casey Bodley 2012-03-29 14:40:12 -04:00 committed by unknown
parent 6bb641e547
commit 68d97f5400
5 changed files with 37 additions and 2 deletions

View file

@ -466,7 +466,14 @@ int nfs41_open(
if (how_mode == EXCLUSIVE4_1) {
DWORD tid = GetCurrentThreadId();
time((time_t*)open_args.openhow.how.createverf);
memcpy(open_args.openhow.how.createverf+4, &tid, sizeof(tid));
memcpy(open_args.openhow.how.createverf+4, &tid, sizeof(tid));
/* mask unsupported attributes */
nfs41_superblock_supported_attrs_exclcreat(
parent->fh.superblock, &createattrs->attrmask);
} else {
/* mask unsupported attributes */
nfs41_superblock_supported_attrs(
parent->fh.superblock, &createattrs->attrmask);
}
open_args.claim = claim;
open_res.resok4.stateid = stateid;