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:
Karel Zak 2020-09-09 15:50:39 +02:00
parent 29b68b9c7b
commit 199cd674ad
1 changed files with 1 additions and 3 deletions

View File

@ -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;