summaryrefslogtreecommitdiff
path: root/fs/fuse/fuse_i.h
diff options
context:
space:
mode:
authorJohn Pittman <jpittman@redhat.com>2020-09-02 17:14:33 -0400
committerMartin K. Petersen <martin.petersen@oracle.com>2020-09-02 22:49:53 -0400
commit979e0dc3457cc95e48920ff5ca901a5821ef57d8 (patch)
tree4d28460464549158b055f1277f77132720ff8b5b /fs/fuse/fuse_i.h
parent5d929371b71b05a85d07dbc3333be7d129be6338 (diff)
scsi: scsi_debug: Adjust num_parts to create equally sized partitions
Currently when using the num_parts parameter, partitions are aligned and the end sector is one prior to the next start. This creates different sized partitions. Create instead equally sized partitions by trimming the end of each partition to the size of the smallest partition. This aligns better with what one would expect from automatically created partitions and can be helpful with testing things such as raid which often expect legs of the same size. Minimal space is lost as the initial partition starting size is calculated by dividing num_sectors by sdebug_num_parts. Link: https://lore.kernel.org/r/20200902211434.9979-2-jpittman@redhat.com Acked-by: Douglas Gilbert <dgilbert@interlog.com> Signed-off-by: John Pittman <jpittman@redhat.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'fs/fuse/fuse_i.h')
0 files changed, 0 insertions, 0 deletions