volume_id: add LittleFS detection
authorSven-Göran Bergh <sgb@systemaxion.se>
Fri, 19 Jan 2018 19:36:15 +0000 (20:36 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Fri, 19 Jan 2018 19:37:13 +0000 (20:37 +0100)
commite411cd071a2b6456c653f1a7179b83bef810bb72
treeacaef2c064f79d3dc86ab6d532b3c2c360aefcdc
parentf6dd9e02155430a608e1b38036e355c045772d04
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>
util-linux/volume_id/lfs.c [new file with mode: 0644]
util-linux/volume_id/volume_id.c
util-linux/volume_id/volume_id_internal.h