[Yaffs] "Formatting the flash"

Charles Manning Charles.Manning@trimble.co.nz
Tue, 11 Jan 2005 07:48:31 +1300


To format YAFFS is easy - just erase all non-bad blocks.

If you unmount a fs, then all the dentry stuff etc is purged from the
Linux kernel.

A sequence like:
Unmount
Erase
Mount

should work fine, I'd think.



-----Original Message-----
From: yaffs-admin@stoneboat.aleph1.co.uk
[mailto:yaffs-admin@stoneboat.aleph1.co.uk] On Behalf Of Abhishek
Bhattacharya
Sent: Tuesday, 11 January 2005 3:25 a.m.
To: yaffs@stoneboat.aleph1.co.uk
Subject: [Yaffs] "Formatting the flash"


Hello All
I have a query . Suppose at any point of time , the user wants to erase
the complete flash, and restart( or in other words format the flash).

Now my idea is that ,this is not possible , at run time.
I presume we might have to use yaffs_unmount(), to deinitialise,
YAFFS.But will it work to deinitialise all current directories and other
objects??
Any suggestions as to how to go about a DiskFormat function if
required??=20
Abhishek