Re: unable to modify jffs2

Xavier DEBREUIL
2001-06-12T16:22:21Z

David Woodhouse a écrit :
>
> martin.gadbois@colubris.com said:
> > Your df command says that the filesystem is full to capacity... how
> > many files do you have in there? What is the result of the du command
> > on /mnt?
>
> Compile with CONFIG_JFFS2_FS_DEBUG=1. Run 'dmesg'. What does it say?
>
> --
> dwmw2

I just try to erase the link lib in the following directory

/mnt/jffs2/jffs2_1/usr/arm/arm-linux # rm lib

dmesg returns :

jffs2_reserve_space(): Requested 0x2c bytes
jffs2_reserve_space(): alloc sem got
Short on space, but total dirty size 0x0000002c < sector size
0x00020000, so -ENOSPC

the jffs2 fs is mounted rw :

/mnt/jffs2/jffs2_1/usr/arm/arm-linux # mount
/dev/ram0 on / type ext2 (rw)
none on /proc type proc (rw)
none on /dev/pts type devpts (rw)
/dev/ram1 on /mnt/ramdisk/rd1 type ext2 (rw)
/dev/mtdblock1 on /mnt/jffs2/jffs2_1 type jffs2 (rw)

but something is strange since df indicates that there is no space left
on that fs ; but the file I have written on my 2Meg partition was only
1.5Meg
/mnt/jffs2/jffs2_1/usr/arm/arm-linux # df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/ram0 3963 2997 966 76% /
/dev/mtdblock1 2048 2048 0 100%
/mnt/jffs2/jffs2_1
/dev/ram1 2011 13 1998 1% /mnt/ramdisk/rd1

Xavier