mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-23 17:34:00 +03:00
btrfs-util: tweak error code a bit
This commit is contained in:
parent
f8838c6c2f
commit
3468e5ac51
@ -319,7 +319,7 @@ int btrfs_get_block_device_fd(int fd, dev_t *dev) {
|
||||
return -errno;
|
||||
|
||||
if (!S_ISBLK(st.st_mode))
|
||||
return -ENODEV;
|
||||
return -ENOTBLK;
|
||||
|
||||
if (major(st.st_rdev) == 0)
|
||||
return -ENODEV;
|
||||
|
Loading…
Reference in New Issue
Block a user