[patch 2/2] util-linux: resizepart: Utility to resize a partition

2012-07-09 Thread vgoyal
A simple user space utility to resize an existing partition. It tries to read the start of partiton from sysfs. This is a real quick dirty patch I used for my testing. I am sure there are better and faster ways of getting to partition "start" from device and partition number. Signed-off-by:

[patch 0/2] [V4] block: Support online resize of disk partitions

2012-07-09 Thread vgoyal
Hi, Few people have pinged me in rencent past about status of this patch, hence, this is V4 of patch which adds support for online resizing of a partition. This patch is based on previously posted patches by Phillip Susi. There are two patches. Out of which one is kernel patch and other one is

[patch 1/2] block: add partition resize function to blkpg ioctl

2012-07-09 Thread vgoyal
Add a new operation code (BLKPG_RESIZE_PARTITION) to the BLKPG ioctl that allows altering the size of an existing partition, even if it is currently in use. This patch converts hd_struct->nr_sects into sequence counter because One might extend a partition while IO is happening to it and update

[patch 1/2] block: add partition resize function to blkpg ioctl

2012-07-09 Thread vgoyal
Add a new operation code (BLKPG_RESIZE_PARTITION) to the BLKPG ioctl that allows altering the size of an existing partition, even if it is currently in use. This patch converts hd_struct-nr_sects into sequence counter because One might extend a partition while IO is happening to it and update of

[patch 0/2] [V4] block: Support online resize of disk partitions

2012-07-09 Thread vgoyal
Hi, Few people have pinged me in rencent past about status of this patch, hence, this is V4 of patch which adds support for online resizing of a partition. This patch is based on previously posted patches by Phillip Susi. There are two patches. Out of which one is kernel patch and other one is

[patch 2/2] util-linux: resizepart: Utility to resize a partition

2012-07-09 Thread vgoyal
A simple user space utility to resize an existing partition. It tries to read the start of partiton from sysfs. This is a real quick dirty patch I used for my testing. I am sure there are better and faster ways of getting to partition start from device and partition number. Signed-off-by: Vivek