Give better diagnostic for problems with backing files.

This commit is contained in:
Poul-Henning Kamp 2004-07-25 08:17:23 +00:00
parent a3d57cfbfd
commit e869d3777e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=132629

View File

@ -113,6 +113,10 @@ main(int argc, char **argv)
cmdline = 2;
}
mdio.md_file = optarg;
fd = open(optarg, O_RDONLY);
if (fd < 0)
err(1, "could not open %s", optarg);
close(fd);
break;
case 'o':
if (cmdline != 2)