From: Sami Kerola Date: Sun, 22 Nov 2015 19:58:26 +0000 (+0000) Subject: mkfs.bfs: allow creating file system to a file X-Git-Tag: v2.28-rc1~248^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=98b4f74e1f8f5735e29b6ac37cf4d3dcd77be701;p=thirdparty%2Futil-linux.git 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 --- diff --git a/disk-utils/mkfs.bfs.c b/disk-utils/mkfs.bfs.c index ff075678bc..d66da14eb3 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);