[Yaffs] "Formatting the flash"
Charles Manning
Charles.Manning@trimble.co.nz
Tue, 11 Jan 2005 17:18:42 +1300
Unmount should not fail unless files are open or the direcetory is busy
(eg. It is a current directory).
A failed unmount is something you will need to address. If you try
erasure while a file system is mounted then bad things will happen
because the Linux internals (VFS) will get out of step with the file
system.
> -----Original Message-----
> From: Abhishek Bhattacharya [mailto:abhishek.b@lgsoftindia.com]=20
> Sent: Tuesday, 11 January 2005 5:06 p.m.
> To: Charles Manning
> Subject: RE: [Yaffs] "Formatting the flash"
>=20
>=20
> Hello Charles
>=20
> Thanks for the reply, but if you try an unmount operation=20
> after you have created some files and directories, it fails.=20
> What can be the reason for failing of unmount. If you try to=20
> erase the flash , it will throw up an exception. thanks abhishek
>=20
> -----Original Message-----
> From: Charles Manning [mailto:Charles.Manning@trimble.co.nz]
> Sent: Tuesday, January 11, 2005 12:19 AM
> To: Abhishek Bhattacharya; yaffs@stoneboat.aleph1.co.uk
> Subject: RE: [Yaffs] "Formatting the flash"
>=20
>=20
> To format YAFFS is easy - just erase all non-bad blocks.
>=20
> If you unmount a fs, then all the dentry stuff etc is purged=20
> from the Linux kernel.
>=20
> A sequence like:
> Unmount
> Erase
> Mount
>=20
> should work fine, I'd think.
>=20
>=20
>=20
> -----Original Message-----
> From: yaffs-admin@stoneboat.aleph1.co.uk
> [mailto:yaffs-admin@stoneboat.aleph1.co.uk] On Behalf Of=20
> Abhishek Bhattacharya
> Sent: Tuesday, 11 January 2005 3:25 a.m.
> To: yaffs@stoneboat.aleph1.co.uk
> Subject: [Yaffs] "Formatting the flash"
>=20
>=20
> Hello All
> I have a query . Suppose at any point of time , the user=20
> wants to erase the complete flash, and restart( or in other=20
> words format the flash).
>=20
> Now my idea is that ,this is not possible , at run time.
> I presume we might have to use yaffs_unmount(), to=20
> deinitialise, YAFFS.But will it work to deinitialise all=20
> current directories and other objects?? Any suggestions as to=20
> how to go about a DiskFormat function if required??=20
> Abhishek
>=20
>=20
>=20
>=20