Whamcloud - gitweb
The rootsquash info will be changed without notify client.
authorfanyong <fanyong>
Sun, 8 Oct 2006 10:21:06 +0000 (10:21 +0000)
committerfanyong <fanyong>
Sun, 8 Oct 2006 10:21:06 +0000 (10:21 +0000)
So the client will update perm actively. (sanity-sec test_3)

lustre/llite/remote_perm.c

index 7fdb295..0b2eabf 100644 (file)
@@ -236,7 +236,7 @@ int lustre_check_remote_perm(struct inode *inode, int mask)
 
 check:
         rc = do_check_remote_perm(lli, mask);
-        if (rc != -ENOENT)
+        if (!rc || ((rc != -ENOENT) && i))
                 RETURN(rc);
 
         might_sleep();
@@ -244,7 +244,7 @@ check:
         down(&lli->lli_rmtperm_sem);
         /* check again */
         rc = do_check_remote_perm(lli, mask);
-        if (rc != -ENOENT) {
+        if (!rc || ((rc != -ENOENT) && i)) {
                 up(&lli->lli_rmtperm_sem);
                 RETURN(rc);
         }