* Trond Myklebust (Trond.Myklebust@xxxxxxxxxx) wrote: > Have you tried running the idmapper with the '-f -v -v' flags so you can > log the translation upcalls? The default cache timeout is 10 minutes, so > you shouldn't have to wait too long. vc-r210-0:/# rpc.idmapd -f -v -v rpc.idmapd: Expiration time is 600 seconds. rpc.idmapd: Opened /proc/net/rpc/nfs4.nametoid/channel rpc.idmapd: Opened /proc/net/rpc/nfs4.idtoname/channel rpc.idmapd: New client: 0 rpc.idmapd: New client: 1 rpc.idmapd: New client: 10 rpc.idmapd: New client: 11 rpc.idmapd: New client: 12 rpc.idmapd: New client: 13 rpc.idmapd: New client: 14 rpc.idmapd: New client: 15 rpc.idmapd: New client: 2 rpc.idmapd: Opened /var/lib/nfs/rpc_pipefs/nfs/clnt2/idmap rpc.idmapd: New client: 4 rpc.idmapd: New client: 5 rpc.idmapd: Opened /var/lib/nfs/rpc_pipefs/nfs/clnt5/idmap rpc.idmapd: New client: 7 rpc.idmapd: New client: 8 rpc.idmapd: New client: 9 rpc.idmapd: New client: a rpc.idmapd: New client: b rpc.idmapd: New client: c rpc.idmapd: New client: d rpc.idmapd: New client: e rpc.idmapd: New client: f rpc.idmapd: Client 2: (user) name "root@xxxxxxxxxxxx" -> id "0" rpc.idmapd: Client 2: (group) name "other@xxxxxxxxxxxx" -> id "20" rpc.idmapd: Client 2: (user) name "davidf@xxxxxxxxxxxx" -> id "1179" rpc.idmapd: Client 2: (group) name "rd@xxxxxxxxxxxx" -> id "1000" These four translations occured at the very start of test, ie, when bash was executed / ".file" truncated. There were no further translations. > While the open() call may indeed fail to set the uid/gid (because to do > so would require an upcall right in the middle of an asynchronous RPC > call), it should normally mark the inode as requiring revalidation if > this is the case. Where ought this occur (so we can validate that it is indeed the case)? > The ensuing stat() should then trigger a GETATTR call on the wire, which > will correct the uid/gid. Is this possibly related to: http://article.gmane.org/gmane.linux.nfs/37224 ? Kind regards, ..david -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html