Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 147529 Details for
Bug 227610
READDIR on a NFSv4 directory containing a referral returns -EIO for entire directory
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
patch -- Make READDIR use mounted_on_fileid rather than regular fileid
nfs4-mounted-on-fileid.patch (text/plain), 2.73 KB, created by
Jeff Layton
on 2007-02-07 01:58:03 UTC
(
hide
)
Description:
patch -- Make READDIR use mounted_on_fileid rather than regular fileid
Filename:
MIME Type:
Creator:
Jeff Layton
Created:
2007-02-07 01:58:03 UTC
Size:
2.73 KB
patch
obsolete
>commit b651d94798a11bf4b23701c3850c239854d503d8 >Author: trond.myklebust <trond.myklebust> >Date: Thu Mar 10 23:04:40 2005 +0000 > > NFSv4: in readdir, use MOUNTED_ON_FILEID, rather than true fileid > > Some servers return an error if the READDIR call attempts to read the > fileid of a mountpoint. > > Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com> > > BKrev: 4230d288ecYQUH1ubJ73kyMJNj_C0Q > >diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c >index ddfce87..86ab507 100644 >--- a/fs/nfs/nfs4proc.c >+++ b/fs/nfs/nfs4proc.c >@@ -1720,6 +1720,7 @@ static int _nfs4_proc_readdir(struct dentry *dentry, struct rpc_cred *cred, > .pages = &page, > .pgbase = 0, > .count = count, >+ .bitmask = NFS_SERVER(dentry->d_inode)->attr_bitmask, > }; > struct nfs4_readdir_res res; > struct rpc_message msg = { >diff --git a/fs/nfs/nfs4xdr.c b/fs/nfs/nfs4xdr.c >index b7dc806..5f4de05 100644 >--- a/fs/nfs/nfs4xdr.c >+++ b/fs/nfs/nfs4xdr.c >@@ -1010,8 +1010,13 @@ static int encode_readdir(struct xdr_stream *xdr, const struct nfs4_readdir_arg > WRITE32(readdir->count >> 1); /* We're not doing readdirplus */ > WRITE32(readdir->count); > WRITE32(2); >- WRITE32(FATTR4_WORD0_FILEID); >- WRITE32(0); >+ if (readdir->bitmask[1] & FATTR4_WORD1_MOUNTED_ON_FILEID) { >+ WRITE32(0); >+ WRITE32(FATTR4_WORD1_MOUNTED_ON_FILEID); >+ } else { >+ WRITE32(FATTR4_WORD0_FILEID); >+ WRITE32(0); >+ } > > /* set up reply kvec > * toplevel_status + taglen + rescount + OP_PUTFH + status >@@ -3857,7 +3862,7 @@ static int nfs4_xdr_dec_delegreturn(struct rpc_rqst *rqstp, uint32_t *p, void *d > > uint32_t *nfs4_decode_dirent(uint32_t *p, struct nfs_entry *entry, int plus) > { >- uint32_t bitmap[1] = {0}; >+ uint32_t bitmap[2] = {0}; > uint32_t len; > > if (!*p++) { >@@ -3881,13 +3886,18 @@ uint32_t *nfs4_decode_dirent(uint32_t *p, struct nfs_entry *entry, int plus) > entry->ino = 1; > > len = ntohl(*p++); /* bitmap length */ >- if (len > 0) { >- bitmap[0] = ntohl(*p); >- p += len; >+ if (len-- > 0) { >+ bitmap[0] = ntohl(*p++); >+ if (len-- > 0) { >+ bitmap[1] = ntohl(*p++); >+ p += len; >+ } > } > len = XDR_QUADLEN(ntohl(*p++)); /* attribute buffer length */ > if (len > 0) { >- if (bitmap[0] == FATTR4_WORD0_FILEID) >+ if (bitmap[0] == 0 && bitmap[1] == FATTR4_WORD1_MOUNTED_ON_FILEID) >+ xdr_decode_hyper(p, &entry->ino); >+ else if (bitmap[0] == FATTR4_WORD0_FILEID) > xdr_decode_hyper(p, &entry->ino); > p += len; > } >diff --git a/include/linux/nfs_xdr.h b/include/linux/nfs_xdr.h >index ec58bbd..9c51eab 100644 >--- a/include/linux/nfs_xdr.h >+++ b/include/linux/nfs_xdr.h >@@ -563,6 +563,7 @@ struct nfs4_readdir_arg { > u32 count; > struct page ** pages; /* zero-copy data */ > unsigned int pgbase; /* zero-copy data */ >+ const u32 * bitmask; > }; > > struct nfs4_readdir_res {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 227610
: 147529 |
147530