12 r = mnt_get_library_version(&version);
14 errx(1, "failed to get lib versino: %s", strerror (-r));
15 printf("libmount version: %s\n", version);
17 struct libmnt_table *table = mnt_new_table();
18 r = mnt_table_parse_mtab (table, NULL);
20 errx(1, "failed to parse mtab: %s", strerror (-r));
23 r = mnt_table_first_fs(table, &fs);
25 errx(1, "failed to find first fs: %s", strerror (-r));
26 printf("first fs type: %s source: %s target: %s\n", mnt_fs_get_fstype(fs), mnt_fs_get_source(fs), mnt_fs_get_target(fs));
29 mnt_free_table(table);