]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs_repair: remove obsolete code for handling mountpoint inodes
authorAnthony Iliopoulos <ailiop@suse.com>
Wed, 9 Dec 2020 17:20:40 +0000 (12:20 -0500)
committerEric Sandeen <sandeen@sandeen.net>
Wed, 9 Dec 2020 17:20:40 +0000 (12:20 -0500)
The S_IFMNT file type was never supported in Linux, remove the related
code that was supposed to deal with it, along with the translation file
entries.

Signed-off-by: Anthony Iliopoulos <ailiop@suse.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
po/de.po
po/pl.po
repair/dinode.c
repair/incore.h

index fab26677e258bdd8321ac04285734227543db400..aa9af769ab896ef55003dde532aafa40e2efcb52 100644 (file)
--- a/po/de.po
+++ b/po/de.po
@@ -11774,11 +11774,6 @@ msgstr ""
 msgid "component of symlink in inode %llu too long\n"
 msgstr "Bestandteil des symbolischen Verweises in Inode %llu zu lang\n"
 
-#: .././repair/dinode.c:1611
-#, c-format
-msgid "inode %llu has bad inode type (IFMNT)\n"
-msgstr "Inode %llu hat falschen Inode-Typ (IFMNT)\n"
-
 #: .././repair/dinode.c:1621
 #, c-format
 msgid "size of character device inode %llu != 0 (%lld bytes)\n"
index 4c6ac82f46dacb2bdc1f92b296e9b40f0a5bbc4e..cf9d2e8edac953370acda24985d5d3ff746aeb2a 100644 (file)
--- a/po/pl.po
+++ b/po/pl.po
@@ -13857,11 +13857,6 @@ msgstr ""
 "znaleziono niedozwolony znak null w i-węźle dowiązania symbolicznego "
 "%<PRIu64>\n"
 
-#: .././repair/dinode.c:1344
-#, c-format
-msgid "inode %<PRIu64> has bad inode type (IFMNT)\n"
-msgstr "i-węzeł %<PRIu64> ma błędny typ i-węzła (IFMNT)\n"
-
 #: .././repair/dinode.c:1355
 #, c-format
 msgid "size of character device inode %<PRIu64> != 0 (%<PRId64> bytes)\n"
index 282b5fa90354cefa6dcfce2b246cd6db38479fc8..291c5807372d50acb8c8c469ac5219e5eb78e53d 100644 (file)
@@ -1392,17 +1392,6 @@ process_misc_ino_types(xfs_mount_t       *mp,
                        xfs_ino_t       lino,
                        int             type)
 {
-       /*
-        * disallow mountpoint inodes until such time as the
-        * kernel actually allows them to be created (will
-        * probably require a superblock version rev, sigh).
-        */
-       if (type == XR_INO_MOUNTPOINT)  {
-               do_warn(
-_("inode %" PRIu64 " has bad inode type (IFMNT)\n"), lino);
-               return(1);
-       }
-
        /*
         * must also have a zero size
         */
@@ -1688,7 +1677,6 @@ _("directory inode %" PRIu64 " has bad size %" PRId64 "\n"),
        case XR_INO_CHRDEV:     /* fall through to FIFO case ... */
        case XR_INO_BLKDEV:     /* fall through to FIFO case ... */
        case XR_INO_SOCK:       /* fall through to FIFO case ... */
-       case XR_INO_MOUNTPOINT: /* fall through to FIFO case ... */
        case XR_INO_FIFO:
                if (process_misc_ino_types(mp, dino, lino, type))
                        return 1;
index 5b29d5d1efd896b17cdce209a68edb7d4ef5a376..074ca98a3989321d3098f5048e85ed185be8a5cb 100644 (file)
@@ -214,7 +214,6 @@ int         count_bcnt_extents(xfs_agnumber_t);
 #define XR_INO_BLKDEV  8               /* block device */
 #define XR_INO_SOCK    9               /* socket */
 #define XR_INO_FIFO    10              /* fifo */
-#define XR_INO_MOUNTPOINT 11           /* mountpoint */
 #define XR_INO_UQUOTA  12              /* user quota inode */
 #define XR_INO_GQUOTA  13              /* group quota inode */
 #define XR_INO_PQUOTA  14              /* project quota inode */