• Namhyung Kim's avatar
    loop: export module parameters · ac04fee0
    Namhyung Kim authored
    Export 'max_loop' and 'max_part' parameters to sysfs so user can know
    that how many devices are allowed and how many partitions are supported.
    
    If 'max_loop' is 0, there is no restriction on the number of loop devices.
    User can create/use the devices as many as minor numbers available. If
    'max_part' is 0, it means simply the device doesn't support partitioning.
    
    Also note that 'max_part' can be adjusted to power of 2 minus 1 form if
    needed. User should check this value after the module loading if he/she
    want to use that number correctly (i.e. fdisk, mknod, etc.).
    Signed-off-by: default avatarNamhyung Kim <namhyung@gmail.com>
    Cc: Laurent Vivier <Laurent.Vivier@bull.net>
    Signed-off-by: default avatarJens Axboe <jaxboe@fusionio.com>
    ac04fee0
loop.c 43 KB