Whamcloud - gitweb
set fsuid upon readpage.
authorlsy <lsy>
Tue, 23 Aug 2005 06:26:36 +0000 (06:26 +0000)
committerlsy <lsy>
Tue, 23 Aug 2005 06:26:36 +0000 (06:26 +0000)
lustre/llite/rw.c

index c1cdda9..7233a33 100644 (file)
@@ -1066,6 +1066,9 @@ int ll_readpage(struct file *filp, struct page *page)
         llap = llap_from_page(page, LLAP_ORIGIN_READPAGE);
         if (IS_ERR(llap))
                 GOTO(out, rc = PTR_ERR(llap));
+
+        /* capability need this */
+        llap->llap_fsuid = current->fsuid;
         
         if (ll_i2sbi(inode)->ll_flags & LL_SBI_READAHEAD)
                 ras_update(ll_i2sbi(inode), &fd->fd_ras, page->index,