Re: [LEDE-DEV] [LEDE-DEV, 3/3] fstools: fix lost mount point when first boot

2018-04-05 Thread rosys...@rosinson.com
before the jffs2(FS_DEADCODE) get ready,      please use the "mount" command to check if the sda1 is mounted under UART console. 3. You will find that the sda1 is mounted at the begining but lost the mount point after jffs2 get ready (FS_READY). rosys...@rosinson.com   From: John Cr

Re: [LEDE-DEV] [LEDE-DEV,2/3] fstools: fix potential memory leak

2018-04-05 Thread rosys...@rosinson.com
I am not sure, maybe you are right, we will never the case. But I known this patch can avoid the case when probing a FS fail with current magics. rosys...@rosinson.com   From: John Crispin Date: 2018-04-02 23:25 To: rosys...@rosinson.com; lede-dev Subject: Re: [LEDE-DEV] [LEDE-DEV,2/3] fstools

[LEDE-DEV] [LEDE-DEV, 3/3] fstools: fix lost mount point when first boot

2018-03-29 Thread rosys...@rosinson.com
When firmware is new flashed and reboot with a storage device plug in its usb interface. Though the filesystem is not ready (FS_STATE_UNKNOWN), the /dev/sda1 still mount on /mnt/sda1 by block-mount, then the system switching jffs... root@OpenWrt:~# dmesg .. [   32.224522] jffs2_scan_eraseblo

[LEDE-DEV] [LEDE-DEV,2/3] fstools: fix potential memory leak

2018-03-29 Thread rosys...@rosinson.com
Fix potential memory leak in fstools Signed-off-by: Rosy Song ---  libblkid-tiny/libblkid-tiny.c | 2 +-  1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libblkid-tiny/libblkid-tiny.c b/libblkid-tiny/libblkid-tiny.c index ccfaf63..12cab6f 100644 --- a/libblkid-tiny/libblkid-tiny.c +++

[LEDE-DEV] [LEDE-DEV,1/3] fstools: add exfat filesystem support

2018-03-29 Thread rosys...@rosinson.com
Add exfat filesystem support for fstools so that the block can detect and show the information of stroage in exfat format. Signed-off-by: Rosy Song ---  CMakeLists.txt                |   1 +  libblkid-tiny/blkidP.h        |  12  libblkid-tiny/exfat.c         | 155 +