mirror of
https://github.com/systemd/systemd.git
synced 2024-12-25 01:34:28 +03:00
blockdev-util: let us know if block_get_whole_disk() did anything
This commit is contained in:
parent
51f14fa111
commit
a0ea1dee7b
@ -52,7 +52,7 @@ int block_get_whole_disk(dev_t d, dev_t *ret) {
|
||||
return -errno;
|
||||
|
||||
*ret = devt;
|
||||
return 0;
|
||||
return 1;
|
||||
}
|
||||
|
||||
int get_block_device(const char *path, dev_t *dev) {
|
||||
|
Loading…
Reference in New Issue
Block a user