7693 pynfs: OPEN4 st_open.testCreatExclusiveFile FAILURE
Review Request #308 — Created Dec. 27, 2016 and submitted
Information | |
---|---|
vgusev | |
illumos-gate | |
master | |
7693 | |
92b9401... | |
Reviewers | |
general | |
marcel |
7693 pynfs: OPEN4 st_open.testCreatExclusiveFile FAILURE
./testserver.py 192.168.5.152:/codepool/data --rundeps --nocleanup OPEN4
INIT st_setclientid.testValid : PASS
OPEN4 st_open.testCreatExclusiveFile : PASS
Command line asked for 2 of 662 tests
Of those: 0 Skipped, 0 Failed, 0 Warned, 2 Passed
-
-
usr/src/uts/common/fs/nfs/nfs4_srv.c (Diff revision 1) This copy operation is valid only in a case when vap->va_mask contains AT_MTIME. This is definitely true for mode == EXCLUSIVE4, but for other modes the vap->va_mtime might just be uninitialized. This is not a big problem, because mtime is used (below) only for the EXCLUSIVE4 case, but still, the initialization of mtime here is confusing a bit. I suggest to remove the mtime local variable and use vap->va_mtime.tv_sec and vap->va_mtime.tv_nsec below respectively.
Change Summary:
Updated according with the first Marcel's note. That simplifies patch.
Commit: |
|
||||
---|---|---|---|---|---|
Diff: |
Revision 2 (+4 -3) |
Status: Closed (submitted)
Change Summary:
commit 77e6f23f311b4352dcc27ce2fcbd2c06546ce837
Author: Vitaliy Gusev gusev.vitaliy@gmail.com
Date: Mon Jan 16 11:34:17 2017 -05007693 pynfs: OPEN4 st_open.testCreatExclusiveFile FAILURE Reviewed by: Andrew Stormont <andyjstormont@gmail.com> Reviewed by: Robert Mustacchi <rm@joyent.com> Reviewed by: Marcel Telka <marcel@telka.sk> Approved by: Dan McDonald <danmcd@omniti.com>