]> err.no Git - util-linux/commitdiff
libblkid: move blkid_known_fstype() to superblocks.c
authorKarel Zak <kzak@redhat.com>
Tue, 15 Sep 2009 19:42:07 +0000 (21:42 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 16 Sep 2009 08:57:23 +0000 (10:57 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
shlibs/blkid/src/probe.c
shlibs/blkid/src/superblocks/superblocks.c

index a268161a11431243d6fbea3c5bedf32401f5817a..0dc70ebccaad1e6e7b1c89e83482c1272197179d 100644 (file)
@@ -105,21 +105,6 @@ static const struct blkid_idinfo *idinfos[] =
 
 static int blkid_probe_set_usage(blkid_probe pr, int usage);
 
-int blkid_known_fstype(const char *fstype)
-{
-       int i;
-
-       if (!fstype)
-               return 0;
-
-       for (i = 0; i < ARRAY_SIZE(idinfos); i++) {
-               const struct blkid_idinfo *id = idinfos[i];
-               if (strcmp(id->name, fstype) == 0)
-                       return 1;
-       }
-       return 0;
-}
-
 /*
  * Returns a pointer to the newly allocated probe struct
  */
index 31c601d4bcba491e4a1d47e54e93337ed8cebf4b..acfd1522f82d0106ca40f9aded419196b59e83f4 100644 (file)
@@ -149,6 +149,27 @@ const struct blkid_chaindrv superblocks_drv = {
 };
 
 
+/**
+ * blkid_known_fstype:
+ * @fstype: filesystem name
+ *
+ * Returns: 1 for known filesytems, or 0 for unknown filesystem.
+ */
+int blkid_known_fstype(const char *fstype)
+{
+       int i;
+
+       if (!fstype)
+               return 0;
+
+       for (i = 0; i < ARRAY_SIZE(idinfos); i++) {
+               const struct blkid_idinfo *id = idinfos[i];
+               if (strcmp(id->name, fstype) == 0)
+                       return 1;
+       }
+       return 0;
+}
+
 /*
  * The blkid_do_probe() backend.
  */