bhyveload: If disk cannot be opened RW try RO. (=same as bhyve)
Not expecting it to turn into yak-shaving: kevans
This commit is contained in:
@@ -722,6 +722,8 @@ disk_open(char *path)
|
||||
return (ERANGE);
|
||||
|
||||
fd = open(path, O_RDWR);
|
||||
if (fd < 0)
|
||||
fd = open(path, O_RDONLY);
|
||||
if (fd < 0)
|
||||
return (errno);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user