[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Question on 'jffs_rename'...
If you delete before you write, you have the possibility of losing all
information about the file's name if you take a fault before the new node is
completely written out.
From: Steven J. Hill [mailto:email@example.com]
Sent: Thursday, September 21, 2000 5:07 PM
To: JFFS List
Subject: Question on 'jffs_rename'...
Around line 508 in 'inode-v22.c' in 'jffs_rename', I am curious
why in the case of a file with the same destination name exists,
that the destination file is removed after the new inode has
been written. I would think that you would remove the existing
file first thereby increasing your chance of having free space
on the flash since the call to 'jffs_write_node' will do GC if
it needs to which would free up some space in the case of low
memory situations. Thoughts?
Steven J. Hill - Embedded SW Engineer
Public Key: 'finger firstname.lastname@example.org'
FPR1: E124 6E1C AF8E 7802 A815
FPR2: 7D72 829C 3386 4C4A E17D