the filesystem type is one which this blkid library supports.
+2003-07-21 Theodore Ts'o <tytso@mit.edu>
+
+ * probe.c (blkid_known_fstype): New function which returns true if
+ the filesystem type is one which this blkid library supports.
+
2003-07-20 Theodore Ts'o <tytso@mit.edu>
* probe.c: When revalidating a filesystem, delete the LABEL tag if
/* getsize.c */
extern blkid_loff_t blkid_get_dev_size(int fd);
+/* probe.c */
+int blkid_known_fstype(const char *fstype);
+
/* read.c */
/* resolve.c */
return dev;
}
+int blkid_known_fstype(const char *fstype)
+{
+ struct blkid_magic *id;
+
+ for (id = type_array; id->bim_type; id++) {
+ if (strcmp(fstype, id->bim_type) == 0)
+ return 1;
+ }
+ return 0;
+}
+
#ifdef TEST_PROGRAM
int main(int argc, char **argv)
{