]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_repair: handle negative errors from read
authorAjeet Yadav <ajeet.yadav.77@gmail.com>
Tue, 1 Feb 2011 21:33:32 +0000 (14:33 -0700)
committerChristoph Hellwig <hch@tuxera.com>
Tue, 1 Feb 2011 21:33:32 +0000 (14:33 -0700)
commit2e4741acb76ad4c0aa3d7a3eb8ae5d14992f4e21
treef898aa40f62e3a873315fe8ffeb775238f6b67d4
parent663acd56b4405e8ea348c5a62c2b5573d8da69e6
xfs_repair: handle negative errors from read

xfs_repair does not handle read() errors while searching for secondary
superblocks. This problem is identified with a simple test case:

 (1) delete primary superblock of xfs partition with
        #dd if=/dev/zero of=/dev/sda1 bs=512 count=1
        #sync
 (2) run xfs_repair, and remove the storage  while it is searching for
     secondary superblocks

xfs_repair will loop forever, printing ............

Signed-off-by: Ajeet Yadav <ajeet.yadav.77@gmail.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
repair/sb.c