lkml.org 
[lkml]   [2012]   [Oct]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 0/4] brd: sanity checks and dynamic ram disk creation/destroying
Date
Hi!

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).

Feedback is appreciated!

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

The patches apply against v3.6.

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

Greetings,

Hannes



\
 
 \ /
  Last update: 2012-10-20 21:21    [W:0.040 / U:2.000 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site