projects
/
platform
/
upstream
/
btrfs-progs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe283a4
)
btrfs-progs: convert, handle pwrite error in do_rollback
author
David Sterba
<dsterba@suse.cz>
Tue, 6 Jan 2015 17:54:48 +0000
(18:54 +0100)
committer
David Sterba
<dsterba@suse.cz>
Tue, 6 Jan 2015 17:56:01 +0000
(18:56 +0100)
Resolves-coverity-id: 1242984
Signed-off-by: David Sterba <dsterba@suse.cz>
btrfs-convert.c
patch
|
blob
|
history
diff --git
a/btrfs-convert.c
b/btrfs-convert.c
index
c503bf6
..
bbd19bb
100644
(file)
--- a/
btrfs-convert.c
+++ b/
btrfs-convert.c
@@
-2675,6
+2675,12
@@
next_extent:
if (bytenr >= total_bytes)
break;
ret = pwrite(fd, buf, sectorsize, bytenr);
+ if (ret != sectorsize) {
+ fprintf(stderr,
+ "error during zeroing supreblock %d: %d\n",
+ i, ret);
+ goto fail;
+ }
}
sb_bytenr = (u64)-1;