lkml.org 
[lkml]   [2015]   [Apr]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 0/3] Fix return code for ioctl( BLKRRPART ) if device is down
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 userspace can't detect the
> > error at all.
> >
> > Fix this by propargating the error of "read capacity" command through the
> > stack, so that the ioctl could fail with -EIO.
> >
> > Fam Zheng (3):
> > block: Return error in rescan_partitions if revalidating disk failed
> > sd: Return error in sd_revalidate_disk if read capacity failed
> > sd: Return -EIO if read capacity failed
> >
> > block/partition-generic.c | 6 +++---
> > drivers/scsi/sd.c | 22 +++++++++++++---------
> > 2 files changed, 16 insertions(+), 12 deletions(-)
> >
>
> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>

Ping?

>
> Though patch 3 could be seen as a change in userspace ABI, so I'm less
> sure about it.
>
> Paolo


\
 
 \ /
  Last update: 2015-04-16 07:41    [W:2.174 / U:0.076 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site