aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-inline.h
diff options
context:
space:
mode:
authorNamhyung Kim <[email protected]>2011-05-28 14:44:46 +0200
committerJens Axboe <[email protected]>2011-05-28 14:44:46 +0200
commit5988ce239682854d4e632fb58bff000700830394 (patch)
tree442b44bb96632b7ed507bc5eeacd10fafc689afd /lib/mpi/mpi-inline.h
parent3b2710824e00d238554c13b5add347e6c701ab1a (diff)
nbd: adjust 'max_part' according to part_shift
The 'max_part' parameter determines how many partitions are supported on each nbd device. However the actual number can be changed to the power of 2 minus 1 form during the module initialization as alloc_disk() is called with (1 << part_shift) for some reason. So adjust 'max_part' also at least for consistency with loop and brd. It is exported via sysfs already, and a user should check this value after module loading if [s]he wants to use that number correctly (i.e. fdisk or something). Signed-off-by: Namhyung Kim <[email protected]> Cc: Laurent Vivier <[email protected]> Cc: Paul Clements <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-inline.h')
0 files changed, 0 insertions, 0 deletions