On Tue, Feb 05, 2013 at 06:00:06PM +0100, Alejandro Martinez Ruiz wrote: > +static int probe_f2fs(blkid_probe pr, const struct blkid_idmag *mag) > +{ > + struct f2fs_super_block *sb; > + uint16_t major, minor; > + > + sb = blkid_probe_get_sb(pr, mag, struct f2fs_super_block); > + if (!sb) > + return -1; > + > + major = le16_to_cpu(sb->major_ver); > + minor = le16_to_cpu(sb->minor_ver); > + > + /* For version 1.0 we cannot know the correct sb structure */ > + if (major == 1 && minor == 0) > + return 0; > + > + if (*((unsigned char *) sb->volume_name)) > + blkid_probe_set_utf8label(pr, (unsigned char *) sb->volume_name, > + sizeof(sb->volume_name), > + BLKID_ENC_UTF16LE); > + > + blkid_probe_set_uuid(pr, sb->uuid); > + blkid_probe_sprintf_version(pr, "%u.%u", major, minor); return 0; > +} Fixed, applied. Thanks. Karel -- Karel Zak <kzak@xxxxxxxxxx> http://karelzak.blogspot.com -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html