summaryrefslogtreecommitdiffhomepage
path: root/util-linux/volume_id/volume_id.c
diff options
context:
space:
mode:
authorSven-Göran Bergh <sgb@systemaxion.se>2018-01-19 20:36:15 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2018-01-19 20:37:13 +0100
commite411cd071a2b6456c653f1a7179b83bef810bb72 (patch)
treeacaef2c064f79d3dc86ab6d532b3c2c360aefcdc /util-linux/volume_id/volume_id.c
parentf6dd9e02155430a608e1b38036e355c045772d04 (diff)
volume_id: add LittleFS detection
Add support for LittleFS to blkid. Not included if FEATURE_BLKID_TYPE is not selected (neither UUID nor label). LittleFS is a small fail-safe filesystem designed for embedded systems. It has strong copy-on-write guarantees and storage on disk is always kept in a valid state. It also provides a form of dynamic wear levelling for systems that can not fit a full flash translation layer. (https://github.com/geky/littlefs) ARM has introduced it in its Mbed OS 5.7, so it starts to gain focus. (https://os.mbed.com/blog/entry/littlefs-high-integrity-embedded-fs/) function old new delta volume_id_probe_lfs - 62 +62 fs1 20 24 +4 Signed-off-by: Sven-Göran Bergh <sgb@systemaxion.se> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'util-linux/volume_id/volume_id.c')
-rw-r--r--util-linux/volume_id/volume_id.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/util-linux/volume_id/volume_id.c b/util-linux/volume_id/volume_id.c
index 85315ced6..c3f07a741 100644
--- a/util-linux/volume_id/volume_id.c
+++ b/util-linux/volume_id/volume_id.c
@@ -97,6 +97,9 @@ static const probe_fptr fs1[] = {
#if ENABLE_FEATURE_VOLUMEID_EXFAT
volume_id_probe_exfat,
#endif
+#if ENABLE_FEATURE_VOLUMEID_LFS
+ volume_id_probe_lfs,
+#endif
#if ENABLE_FEATURE_VOLUMEID_MAC
volume_id_probe_mac_partition_map,
#endif