mirror of
https://github.com/systemd/systemd.git
synced 2024-12-23 21:35:11 +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