OESF Portables Forum

General Forums => General Discussion => Topic started by: speculatrix on September 21, 2005, 06:20:41 am

Title: Unionfs, Cramfs And Flash
Post by: speculatrix on September 21, 2005, 06:20:41 am
For some time I've felt that the big problem with the Z and having a base OS install is that things can get messy...
There are a lot of symlinks from writable file space to the rom file system, so that all the usual files are in the usual place, but you can patch the OS with new files by replacing the symlink with a real file.

e.g. initially /etc/hosts would symlink to /mnt/rom.cramfs/etc/hosts, but you'd replace it with a real file in /etc/hosts.

As I understand it, Guylhem has done some great work making a clean 6000 ROM without all this clutter, but I don't know how he handled the issue of being able to replace files in ROM with files in regular flash?


Then I came across project-unionfs (http://www.fsl.cs.sunysb.edu/project-unionfs.html), which allows you to overlay or stack one FS on top of another, i.e. to add incremental changes. This allows the system to be very flexible because as far as the user is concerned, all the files are real files and you don't have to know where they are.

Does this make sense? How easy would it be to add this support into OE, Cacko or Guylhem's distro?

Paul
Title: Unionfs, Cramfs And Flash
Post by: lardman on September 21, 2005, 07:32:41 am
Quote
As I understand it, Guylhem has done some great work making a clean 6000 ROM without all this clutter, but I don't know how he handled the issue of being able to replace files in ROM with files in regular flash?

Probably by making the 'ROM' writable (it's just flash which can be written to if it's mounted as rw) which is also how things are done with OZ.

Quote
Then I came across project-unionfs, which allows you to overlay or stack one FS on top of another, i.e. to add incremental changes. This allows the system to be very flexible because as far as the user is concerned, all the files are real files and you don't have to know where they are.

Does this make sense? How easy would it be to add this support into OE, Cacko or Guylhem's distro?

From what I remember this has been looked at but it still needs some problems ironing out when used on the Zaurus so it hasn't been implemented yet (http://www.openzaurus.org/official/unstable/3.5.3/changelog.txt).


Si
Title: Unionfs, Cramfs And Flash
Post by: koen on September 21, 2005, 07:38:44 am
To erase doubt: unionfs + unionfs modules are in OE and can be built without effort
Title: Unionfs, Cramfs And Flash
Post by: Da_Blitz on September 21, 2005, 07:51:51 am
unionsfs is great, what you can do is mount the flash as read only and then mount another directory over the top of that as rw and redirect all writes to the second partion. allowing you to merge a ro and rw partion

it has some uses such as during beta testing, you can make changes to the filesystem and if it dosent work out you can start from scratch by deleteing everything in the second rw part automatically revealing the ro part again
Title: Unionfs, Cramfs And Flash
Post by: speculatrix on September 21, 2005, 08:32:35 am
I should have explained why I wanted this instead of just having the whole base install on a regular read-write flash: high file compression/optimised storage, which is not amenable to modification.

Da_Blitz also highlighted the reversibility of it too. Anyone remember WORM (write once optical media) which simply added new file and hid the old version(s)? This would be great too. Kind of file-system-wide CVS!

I think once OE 3.5.3 is mature it will be a killer base OS for the Z.
Title: Unionfs, Cramfs And Flash
Post by: koen on September 21, 2005, 12:52:28 pm
Quote
I think once OE 3.5.3 is mature it will be a killer base OS for the Z.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=96537\"][{POST_SNAPBACK}][/a][/div]
That would be OZ 3.5.4 </knowitall>
Title: Unionfs, Cramfs And Flash
Post by: Mickeyl on September 21, 2005, 01:19:00 pm
Nah, that'd be Ã…ngström, of course  
Title: Unionfs, Cramfs And Flash
Post by: koen on September 21, 2005, 03:09:09 pm
Quote
Nah, that'd be Ã…ngström, of course 
[div align=\"right\"][a href=\"index.php?act=findpost&pid=96570\"][{POST_SNAPBACK}][/a][/div]

Yeah, with the OE/OZ confusion gone our ReadOnlyMemory building counterparts can finally insult the right project  
Title: Unionfs, Cramfs And Flash
Post by: eviLjazz on September 23, 2005, 06:25:35 am
If anybody wants to check out unionfs and gzipfs on SharpROM, check out this thread:
https://www.oesf.org/forums/index.php?showtopic=15156 (https://www.oesf.org/forums/index.php?showtopic=15156)

Regards,
Andre