Adding BLKPG_RESIZE_PARTITION

Christian Neukirchen chneukirchen at gmail.com
Wed Jul 8 09:36:49 UTC 2015


Hi,

since Linux 3.6 there is an BLKPG (sub-)ioctl to tell the kernel that
partition size has changed, e.g. used by "partx -u".  With strace 4.10
this is dumped as

ioctl(3, BLKPG, {0x3 /* BLKPG_??? */, flags=0, datalen=152, {start=1048576, length=42948624384, pno=1, devname="", volname=""}}) = 0

/usr/include/linux/blkpg.h:#define BLKPG_RESIZE_PARTITION	3

I propose to add this to strace for completeness.

Thanks,
-- 
Christian Neukirchen  <chneukirchen at gmail.com>  http://chneukirchen.org




More information about the Strace-devel mailing list