pNFS/filelayout: Remove the whole file layout requirement

JIRA: https://issues.redhat.com/browse/RHEL-59704

commit 9c75576e3bbf0153e92ab51ff161962d8632c290
Author: Anna Schumaker <Anna.Schumaker@Netapp.com>
Date:   Wed Mar 20 17:11:19 2024 -0400

    pNFS/filelayout: Remove the whole file layout requirement

    Layout segments have been supported in pNFS for years, so remove the
    requirement that the server always sends whole file layouts.

    Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
    Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>

Signed-off-by: Scott Mayhew <smayhew@redhat.com>
This commit is contained in:
Scott Mayhew 2024-09-23 16:32:57 -04:00
parent e9995076e3
commit 4700e22029
1 changed files with 0 additions and 8 deletions

View File

@ -605,14 +605,6 @@ filelayout_check_layout(struct pnfs_layout_hdr *lo,
dprintk("--> %s\n", __func__);
/* FIXME: remove this check when layout segment support is added */
if (lgr->range.offset != 0 ||
lgr->range.length != NFS4_MAX_UINT64) {
dprintk("%s Only whole file layouts supported. Use MDS i/o\n",
__func__);
goto out;
}
if (fl->pattern_offset > lgr->range.offset) {
dprintk("%s pattern_offset %lld too large\n",
__func__, fl->pattern_offset);