search for: 2d3c2af

Displaying 1 result from an estimated 1 matches for "2d3c2af".

Did you mean: 253c2a4f
2013 Feb 12
10
[PATCH] Btrfs-progs: check out if the swap device
...omu Itoh <t-itoh@jp.fujitsu.com> --- (this patch is based on Chris''s raid56-experimental branch) --- mkfs.c | 18 ++++++++++++++++++ utils.c | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ utils.h | 1 + 3 files changed, 68 insertions(+) diff --git a/mkfs.c b/mkfs.c index 2d3c2af..fdc3373 100644 --- a/mkfs.c +++ b/mkfs.c @@ -1366,6 +1366,15 @@ int main(int ac, char **av) if (source_dir == 0) { file = av[optind++]; + ret = is_swap_device(file); + if (ret < 0) { + fprintf(stderr, "error checking %s status\n", file); + exit(1); + } + if (ret == 1) {...