NFS4.0: Cases for SGID/UID status after writing
Subsystems (2)
PATCH 2/3 NFS4.0: Cases for SGID/UID status after writing
Signed-off-by Kinglong Mee <[email protected]>
--- nfs4.0/servertests/environment.py | 10 +++++ nfs4.0/servertests/st_write.py | 90 ++++++++++++++++++++++++++++++++++++++- 2 files changed, 99 insertions(+), 1 deletion(-)
nfs4.0/servertests/environment.py +10 -0
@@ -113,6 +113,7 @@ class Environment(testmod.Environment): self.longname = "a"*512 self.uid = 0 self.gid = 0 + self.nclnt = 2 self.opts = opts self.filedata = "This is the file test data." self.linkdata = "/etc/X11"
@@ -388,3 +389,12 @@ def compareTimes(time1, time2): if time1.nseconds > time2.nseconds: return 1 return 0 + +def clientWithSys(env, uid, gid): + opts = env.opts + env.nclnt += 1 + authsys = rpc.SecAuthSys(0, opts.machinename, uid, gid, []) + c = NFS4Client('client%d_pid%i' % (env.nclnt, os.getpid()), + opts.server, opts.port, opts.path, + sec_list=[authsys], opts=opts) + return c
nfs4.0/servertests/st_write.py +89 -1
98 lines not on this page · raw message
Signature · 1 line
1.9.0