unable to modify jffs2

Xavier DEBREUIL xde at inventel.fr
Tue Jun 12 12:26:02 EDT 2001


David Woodhouse a écrit :
> 
> martin.gadbois at 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




More information about the linux-mtd mailing list