summaryrefslogtreecommitdiffstats
path: root/Documentation/filesystems/nfs
diff options
context:
space:
mode:
authorScott Bauer2018-01-23 18:55:18 +0100
committerMike Snitzer2018-01-29 19:44:58 +0100
commitcc65661981ae2424e27c695ae8d15604448eb666 (patch)
tree62346566d59e7ff082e6d1d95c986c02cf2264dd /Documentation/filesystems/nfs
parentdm thin: fix trailing semicolon in __remap_and_issue_shared_cell (diff)
downloadkernel-qcow2-linux-cc65661981ae2424e27c695ae8d15604448eb666.tar.gz
kernel-qcow2-linux-cc65661981ae2424e27c695ae8d15604448eb666.tar.xz
kernel-qcow2-linux-cc65661981ae2424e27c695ae8d15604448eb666.zip
dm unstripe: fix target length versus number of stripes size check
Since the unstripe target takes a target length which is the size of *one* striped member we're trying to expose, not the total size of *all* the striped members, the check does not make sense and fails for some striped setups. For example, say we have a 4TB striped device: or 3907018496 sectors per underlying device: if (sector_div(width, uc->stripes)) : 3907018496 / 2(num stripes) == 1953509248 tmp_len = width; if (sector_div(tmp_len, uc->chunk_size)) : 1953509248 / 256(chunk size) == 7630895.5 (fails) Fix this by removing the first check which isn't valid for unstriping. Signed-off-by: Scott Bauer <scott.bauer@intel.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'Documentation/filesystems/nfs')
0 files changed, 0 insertions, 0 deletions