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 <kerolasa@iki.fi>
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);