Messages in this thread | | | From | Hannes Frederic Sowa <> | Subject | [PATCH v2 0/4] brd: sanity checks and dynamic ram disk creation/destroying | Date | Tue, 18 Dec 2012 02:13:03 +0100 |
| |
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@order.stressinduktion.org>): 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@stressinduktion.org>): 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(-)
| |