Message ID | 1380220950-14484-1-git-send-email-bhalevy@primarydata.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/fs/nfsd/nfs4pnfsdlm.c b/fs/nfsd/nfs4pnfsdlm.c index 7ed8156..acc1f91 100644 --- a/fs/nfsd/nfs4pnfsdlm.c +++ b/fs/nfsd/nfs4pnfsdlm.c @@ -390,6 +390,10 @@ static enum nfsstat4 nfsd4_pnfs_dlm_layoutget(struct inode *inode, dprintk("%s: LAYOUT_GET\n", __func__); + /* DLM exported file systems only support layouts for READ */ + if (res->lg_seg.iomode == IOMODE_RW) + return NFS4ERR_BADIOMODE; + index = dlm_ino_hash(inode); dprintk("%s first stripe index %d i_ino %lu\n", __func__, index, inode->i_ino);