mkswap: remove unnecessary on FS_IOC_FIEMAP
This is something user cannot fix and extents check is nothing critical. Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
29b68b9c7b
commit
199cd674ad
|
@ -244,10 +244,8 @@ static void check_extents(struct mkswap_control *ctl)
|
|||
(sizeof(buf) - sizeof(*fiemap)) / sizeof(struct fiemap_extent);
|
||||
|
||||
rc = ioctl(ctl->fd, FS_IOC_FIEMAP, (unsigned long) fiemap);
|
||||
if (rc < 0) {
|
||||
warn(_("FIEMAP failed -- ignore extents check"));
|
||||
if (rc < 0)
|
||||
return;
|
||||
}
|
||||
|
||||
n = fiemap->fm_mapped_extents;
|
||||
|
||||
|
|
Loading…
Reference in New Issue