[OpenWrt-Devel] [fstools PATCH: 4/4] libblkid-tiny: use blkid_probe_set_utf8label for label set
Ansuel Smith
ansuelsmth at gmail.com
Sun Jun 16 13:00:50 EDT 2019
Signed-off-by: Ansuel Smith <ansuelsmth at gmail.com>
---
libblkid-tiny/f2fs.c | 2 --
libblkid-tiny/hfs.c | 2 --
libblkid-tiny/ntfs.c | 6 +-----
3 files changed, 1 insertion(+), 9 deletions(-)
diff --git a/libblkid-tiny/f2fs.c b/libblkid-tiny/f2fs.c
index 6efce61..2bf0f5e 100644
--- a/libblkid-tiny/f2fs.c
+++ b/libblkid-tiny/f2fs.c
@@ -71,12 +71,10 @@ static int probe_f2fs(blkid_probe pr, const struct blkid_idmag *mag)
if (major == 1 && minor == 0)
return 0;
-#if 0
if (*((unsigned char *) sb->volume_name))
blkid_probe_set_utf8label(pr, (unsigned char *) sb->volume_name,
sizeof(sb->volume_name),
BLKID_ENC_UTF16LE);
-#endif
blkid_probe_set_uuid(pr, sb->uuid);
blkid_probe_sprintf_version(pr, "%u.%u", major, minor);
diff --git a/libblkid-tiny/hfs.c b/libblkid-tiny/hfs.c
index 8676d36..04f25a1 100644
--- a/libblkid-tiny/hfs.c
+++ b/libblkid-tiny/hfs.c
@@ -294,11 +294,9 @@ static int probe_hfsplus(blkid_probe pr, const struct blkid_idmag *mag)
if (be32_to_cpu(key->parent_id) != HFSPLUS_POR_CNID)
return 0;
-#if 0
blkid_probe_set_utf8label(pr, key->unicode,
be16_to_cpu(key->unicode_len) * 2,
BLKID_ENC_UTF16BE);
-#endif
return 0;
}
diff --git a/libblkid-tiny/ntfs.c b/libblkid-tiny/ntfs.c
index 93c1d88..3a9d5cb 100644
--- a/libblkid-tiny/ntfs.c
+++ b/libblkid-tiny/ntfs.c
@@ -82,13 +82,11 @@ enum {
static int probe_ntfs(blkid_probe pr, const struct blkid_idmag *mag)
{
struct ntfs_super_block *ns;
-#if 0
struct master_file_table_record *mft;
-#endif
uint32_t sectors_per_cluster, mft_record_size;
uint16_t sector_size;
- uint64_t nr_clusters, off; //, attr_off;
+ uint64_t nr_clusters, off, attr_off;
unsigned char *buf_mft;
ns = blkid_probe_get_sb(pr, mag, struct ntfs_super_block);
@@ -174,7 +172,6 @@ static int probe_ntfs(blkid_probe pr, const struct blkid_idmag *mag)
if (memcmp(buf_mft, "FILE", 4))
return 1;
-#if 0
mft = (struct master_file_table_record *) buf_mft;
attr_off = le16_to_cpu(mft->attrs_offset);
@@ -204,7 +201,6 @@ static int probe_ntfs(blkid_probe pr, const struct blkid_idmag *mag)
attr_off += attr_len;
}
-#endif
blkid_probe_sprintf_uuid(pr,
(unsigned char *) &ns->volume_serial,
--
2.20.1
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list