summaryrefslogtreecommitdiffstats
path: root/daemon
diff options
context:
space:
mode:
Diffstat (limited to 'daemon')
-rw-r--r--daemon/mkfs.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/daemon/mkfs.c b/daemon/mkfs.c
index 5475582d..492b6908 100644
--- a/daemon/mkfs.c
+++ b/daemon/mkfs.c
@@ -133,6 +133,11 @@ do_mkfs_opts (const char *fstype, const char *device, int blocksize,
ADD_ARG (argv, i, "-c");
ADD_ARG (argv, i, blocksize_str);
}
+ else if (STREQ (fstype, "btrfs")) {
+ /* For btrfs, blocksize cannot be specified (RHBZ#807905). */
+ reply_with_error ("blocksize cannot be set on btrfs filesystems");
+ return -1;
+ }
else {
/* For all other filesystem types, try the -b option. */
snprintf (blocksize_str, sizeof blocksize_str, "%d", blocksize);