From 98b4f74e1f8f5735e29b6ac37cf4d3dcd77be701 Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Sun, 22 Nov 2015 19:58:26 +0000 Subject: mkfs.bfs: allow creating file system to a file Most, if not all, linux file systems allow this and there should not be a reason why bfs could not do the same. Signed-off-by: Sami Kerola --- disk-utils/mkfs.bfs.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'disk-utils/mkfs.bfs.c') diff --git a/disk-utils/mkfs.bfs.c b/disk-utils/mkfs.bfs.c index ff075678b..d66da14eb 100644 --- a/disk-utils/mkfs.bfs.c +++ b/disk-utils/mkfs.bfs.c @@ -184,9 +184,6 @@ int main(int argc, char **argv) if (stat(device, &statbuf) < 0) err(EXIT_FAILURE, _("stat of %s failed"), device); - if (!S_ISBLK(statbuf.st_mode)) - errx(EXIT_FAILURE, _("%s is not a block special device"), device); - fd = open_blkdev_or_file(&statbuf, device, O_RDWR); if (fd < 0) err(EXIT_FAILURE, _("cannot open %s"), device); -- cgit v1.2.3-55-g7522