Re: [PATCH 0/3] Fix return code for ioctl( BLKRRPART ) if device is down

2015-04-15 Thread Fam Zheng
On Tue, 03/24 11:34, Paolo Bonzini wrote: > > > On 24/03/2015 11:16, Fam Zheng wrote: > > If issued right after link down, "blockdev --rereadpt" will be stuck for a > > while and then return normally. Although the underlying capacity and > > partition > > table are not correctly updated. And it

Re: [PATCH 0/3] Fix return code for ioctl( BLKRRPART ) if device is down

2015-04-15 Thread Fam Zheng
On Tue, 03/24 11:34, Paolo Bonzini wrote: On 24/03/2015 11:16, Fam Zheng wrote: If issued right after link down, blockdev --rereadpt will be stuck for a while and then return normally. Although the underlying capacity and partition table are not correctly updated. And it means that

Re: [PATCH 0/3] Fix return code for ioctl( BLKRRPART ) if device is down

2015-03-24 Thread Fam Zheng
On Tue, 03/24 11:34, Paolo Bonzini wrote: > > > On 24/03/2015 11:16, Fam Zheng wrote: > > If issued right after link down, "blockdev --rereadpt" will be stuck for a > > while and then return normally. Although the underlying capacity and > > partition > > table are not correctly updated. And it

Re: [PATCH 0/3] Fix return code for ioctl( BLKRRPART ) if device is down

2015-03-24 Thread Paolo Bonzini
On 24/03/2015 11:16, Fam Zheng wrote: > If issued right after link down, "blockdev --rereadpt" will be stuck for a > while and then return normally. Although the underlying capacity and partition > table are not correctly updated. And it means that userspace can't detect the > error at all. > >

[PATCH 0/3] Fix return code for ioctl( BLKRRPART ) if device is down

2015-03-24 Thread Fam Zheng
If issued right after link down, "blockdev --rereadpt" will be stuck for a while and then return normally. Although the underlying capacity and partition table are not correctly updated. And it means that userspace can't detect the error at all. Fix this by propargating the error of "read

Re: [PATCH 0/3] Fix return code for ioctl( BLKRRPART ) if device is down

2015-03-24 Thread Paolo Bonzini
On 24/03/2015 11:16, Fam Zheng wrote: If issued right after link down, blockdev --rereadpt will be stuck for a while and then return normally. Although the underlying capacity and partition table are not correctly updated. And it means that userspace can't detect the error at all. Fix

Re: [PATCH 0/3] Fix return code for ioctl( BLKRRPART ) if device is down

2015-03-24 Thread Fam Zheng
On Tue, 03/24 11:34, Paolo Bonzini wrote: On 24/03/2015 11:16, Fam Zheng wrote: If issued right after link down, blockdev --rereadpt will be stuck for a while and then return normally. Although the underlying capacity and partition table are not correctly updated. And it means that

[PATCH 0/3] Fix return code for ioctl( BLKRRPART ) if device is down

2015-03-24 Thread Fam Zheng
If issued right after link down, blockdev --rereadpt will be stuck for a while and then return normally. Although the underlying capacity and partition table are not correctly updated. And it means that userspace can't detect the error at all. Fix this by propargating the error of read capacity