]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
mkswap: remove unnecessary on FS_IOC_FIEMAP
authorKarel Zak <kzak@redhat.com>
Wed, 9 Sep 2020 13:50:39 +0000 (15:50 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 9 Sep 2020 13:50:39 +0000 (15:50 +0200)
This is something user cannot fix and extents check is nothing critical.

Signed-off-by: Karel Zak <kzak@redhat.com>
disk-utils/mkswap.c

index 1899872c463cd2e0d85eb7b6f2b33cc400809a9e..af9f1d9e80f1b0595a7c7aa9446425a7d769b91f 100644 (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;