[PATCH v2 0/4] brd: sanity checks and dynamic ram disk creation/destroying

From: Hannes Frederic Sowa
Date: Mon Dec 17 2012 - 20:13:37 EST


While toying around with a library which needs small block devices for
quorum management, I came up with these patches to dynamically create
and destroy ram disks (I wanted to have non-swappable backed devices).

Change log (since RFC patch <20121014024836.GB27966@xxxxxxxxxxxxxxxxxxxxxxxxx>):
1) module parameters(rd_nr, rd_size, max_part) are now unsigned ints
2) check for active users of ram disk before BLKFLSBUFing
3) switched from lists to idrs for device management

Change log (since patch v1 <1350757943-24981-1-git-send-email-hannes@xxxxxxxxxxxxxxxxxxx>):
1) rebase to v3.7 (in conformance to uapi-header changes)
2) convert simple_stroul to kstrtoul
3) make rd_size static as the last user has vanished

These patches are diffed against v3.7:

Documentation/ioctl/ioctl-number.txt | 1 +
block/partition-generic.c | 1 +
drivers/block/brd.c | 361 +++++++++++++++++++++++++++++------
include/linux/miscdevice.h | 1 +
include/uapi/linux/Kbuild | 1 +
include/uapi/linux/brd.h | 12 ++
6 files changed, 314 insertions(+), 63 deletions(-)

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/