Re: [PATCH v2] fs: jffs2: add initial support for reading jffs2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Feb 05, 2020 at 10:12:01AM +0100, Steffen Trumtrar wrote:
> Import the jffs2 filesystem code from Linux v5.5-rc1 and convert it
> to work with barebox.
> 
> Writing is *not* supported.
> 
> Testing was done with a n25q256a-compatible QuadSPI chip on a
> SoCFPGA-based Socrates board.
> 
> Testing was done with a combination of:
> 	user@somelinuxhost: mkfs.jffs2 --eraseblock=4 -d fs/jffs2/ -o jffs2.img
> 	root@target:~ flash_erase -j /dev/mtd5 0 0
> 	root@target:~ dd if=jffs2.img of=/dev/mtd5
> 	barebox@EBV SOCrates:/ mount /dev/mtd0.data
> 	(...)
> 	mounted /dev/mtd0.data on /mnt/mtd0.data
> 
> Signed-off-by: Steffen Trumtrar <s.trumtrar@xxxxxxxxxxxxxx>
> ---
> 
> Notes:
>     Changes in v2:
>       - add some missing pr_fmt
>       - fix multiple mount/umount cycles by moving compressor_init and
>         create_slab_caches to jffs2_probe instead of init_jffs2_fs.
>         jffs2_remove calls compressor_exit and destroy_slab_caches which
>         in turn is called by umount. This lead to being unable to umount
>         twice.
>       - fix memory leaks
>       - fix jffs2_get_block function

Applied, thanks

Sascha


-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux