Running out of space on MTD partition with JFFS2
dwmw2 at infradead.org
Thu Mar 25 04:07:32 EST 2004
On Thu, 2004-03-25 at 14:45 +0530, Rajesh B. V. wrote:
> Hi All,
> I mounted JFFS2 file system through device 'mtdblock4' on my ARM target.
> I need to update some files ( kind of configuration files ) periodically in
> the JFFS2 partition.
> For this i create the files in RAM and just copy the files from RAM to
> JFFS2, overwriting the previous files.
Are you removing the old files first, or writing the new files with
different names and then renaming them to the same name as the original
files? Or are you opening the original files with O_TRUNC?
Are there any processes running which still have the old file open?
More information about the linux-mtd