From: Namhyung Kim Date: Sat, 28 May 2011 12:44:46 +0000 (+0200) Subject: nbd: adjust 'max_part' according to part_shift X-Git-Tag: v3.0-rc2~8^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5988ce239682854d4e632fb58bff000700830394;p=pandora-kernel.git 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 Cc: Laurent Vivier Cc: Paul Clements Signed-off-by: Jens Axboe --- Reading git-diff-tree failed