1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

Revert "pvck: check result of dev_get_size"

This reverts commit 1f4968289c.

fixes folded into subsequent pvck commit
This commit is contained in:
David Teigland 2019-11-14 12:31:30 -06:00
parent 4485b8edca
commit 39bd9b111b

View File

@ -1455,8 +1455,7 @@ static int _dump_search(struct cmd_context *cmd,
uint64_t dev_bytes;
uint64_t extra_bytes;
if (!dev_get_size(dev, &dev_sectors))
return_ECMD_FAILED;
dev_get_size(dev, &dev_sectors);
dev_bytes = dev_sectors * 512;
extra_bytes = dev_bytes % ONE_MB_IN_BYTES;