btrfs-progs: Error handling in scrub_progress_cycle() thread
authorEric Sandeen <sandeen@redhat.com>
Mon, 4 Mar 2013 22:45:37 +0000 (16:45 -0600)
committerDavid Sterba <dsterba@suse.cz>
Sun, 10 Mar 2013 15:06:37 +0000 (16:06 +0100)
commitb79d4a217fe8501431dcc0d956ed58a93b05565f
tree40af8f2443d7331b80dff78f4bb785e68408aadd
parent6626354fdf00ce8d61edc69c0d65d283ef99c69c
btrfs-progs: Error handling in scrub_progress_cycle() thread

consolidate error handling to ensure that peer_fd
is closed on error paths.  Add a couple comments
to the error handling after the thread is complete.

Note that scrub_progress_cycle returns negative
errnos on any error.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
cmds-scrub.c