mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-12-08 00:00:12 +03:00
fix fsck return code for in-kernel fsck
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
4013ed4dfb
commit
a4babd1d64
@ -86,8 +86,8 @@ static int splice_fd_to_stdinout(int fd)
|
||||
stdin_closed = true;
|
||||
}
|
||||
|
||||
close(fd);
|
||||
return 0;
|
||||
/* the return code from fsck itself is returned via close() */
|
||||
return close(fd);
|
||||
}
|
||||
|
||||
static int fsck_online(const char *dev_path, const char *opt_str)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user