mirror of
https://github.com/morgan9e/systemd
synced 2026-04-15 00:47:10 +09:00
mkfs-util: Silence noisy warning from mkfs.btrfs
This commit is contained in:
committed by
Luca Boccassi
parent
3d41b6b8e8
commit
a1a4bbea2d
@@ -388,6 +388,11 @@ int make_filesystem(
|
||||
if (quiet && strv_extend(&argv, "-q") < 0)
|
||||
return log_oom();
|
||||
|
||||
/* mkfs.btrfs unconditionally warns about several settings changing from v5.15 onwards which
|
||||
* isn't silenced by "-q", so let's redirect stdout to /dev/null as well. */
|
||||
if (quiet)
|
||||
stdio_fds[1] = -EBADF;
|
||||
|
||||
} else if (streq(fstype, "f2fs")) {
|
||||
argv = strv_new(mkfs,
|
||||
"-g", /* "default options" */
|
||||
|
||||
Reference in New Issue
Block a user