I am running some experiments against NFS and would like to open-downgrade a file in my NFS mount but I do not which python command should I use for that.
Asked
Active
Viewed 391 times
1 Answers
0
If an open-owner has opened the same file multiple times with different access and deny values, closing one of the opens will result in invocation of open_downgrade on NFS server.
fd1 = open("/home/ubuntu/v4/foo", 'r')
fd2 = open("/home/ubuntu/v4/foo", 'w')
fd1.close()

Ross Ridge
- 38,414
- 7
- 81
- 112

user1071840
- 3,522
- 9
- 48
- 74