#105035 - 14/07/2002 16:00
fsck sucks
|
pooh-bah
Registered: 31/08/1999
Posts: 1649
Loc: San Carlos, CA
|
OK, I am currently sitting here patiently (yea right) waiting for my relatively small 40Gig empeg to complete an fsck after a failed sync. I have been waiting for about 15 minutes and I figure it will take at least another 15 minutes to complete. It occurs to me that this sucks. What about a journaling filesystem? I know that has been brought up before, but I though it might be nice to think about it again. All we need is kernel support for it right? The two leading JFS for linux right now are ext3 and reiser right? Have either of these been backported to the 2.2 kernel series? It just seems like with all the very bright people on this board doing stuff like hijack, dsp programming, etc. there ought to be somebody interested in and capable of getting this to work. Anybody? Anybody? Bueler? Bueler?
|
Top
|
|
|
|
#105036 - 14/07/2002 16:21
Re: fsck sucks
[Re: mcomb]
|
carpal tunnel
Registered: 20/12/1999
Posts: 31599
Loc: Seattle, WA
|
In another recent thread, I seem to recall one of the empeg guys saying that if they were going to port a journaled filesystem to the car player, it would probably be Ext3 instead of Reiser due to the ease of migration. No specific timetable was given for this.
|
Top
|
|
|
|
#105037 - 14/07/2002 16:33
Re: fsck sucks
[Re: tfabris]
|
pooh-bah
Registered: 31/08/1999
Posts: 1649
Loc: San Carlos, CA
|
No specific timetable was given for this.
Personally I am not expecting the empeg guys to ever do this which is why I mentioned it in this forum rather than as a feature request. They are obviously busy working on other projects and this is something that could easily be done by the community here since it has nothing to do with the core empeg software. If/when the empeg guys do find more time to work on the car players I think there is a lot of better ways for their effort to be spent (voice recognition, ogg support, bug fixes, etc).
-Mike
|
Top
|
|
|
|
#105038 - 14/07/2002 16:36
Re: fsck sucks
[Re: mcomb]
|
carpal tunnel
Registered: 20/12/1999
Posts: 31599
Loc: Seattle, WA
|
Personally I am not expecting the empeg guys to ever do this
I don't see how it's going to get done unless they do it.
Well, okay, it could get done by people other than the empeg guys if (a) the player app gets opensourced, or (b) someone writes a replacement player app, builder image, and upgrader.
|
Top
|
|
|
|
#105039 - 14/07/2002 16:49
Re: fsck sucks
[Re: tfabris]
|
pooh-bah
Registered: 31/08/1999
Posts: 1649
Loc: San Carlos, CA
|
I don't see how it's going to get done unless they do it.
Well, okay, it could get done by people other than the empeg guys if (a) the player app gets opensourced, or (b) someone writes a replacement player app, builder image, and upgrader.
Why would any of that need to happen? The filesystem is totally on OS level thing and the empeg software shouldn't care about it at all. Users could run a jfs on the music partitions and leave everything else alone. That way the empeg upgrades should still work as always. After installing the empeg software the user would need to update the kernel and probably a few userland utilities (fsck, mount, etc). The process shouldn't be any harder than installing any of the current userland apps people have created. The only empeg software that shouldn't "just work" with jfs formatted music partitions is the builder utility which isn't really necessary.
-Mike
|
Top
|
|
|
|
#105041 - 14/07/2002 17:47
Re: fsck sucks
[Re: mschrag]
|
pooh-bah
Registered: 31/08/1999
Posts: 1649
Loc: San Carlos, CA
|
Nah, I have always hated fsck. Every once in a while jemplode does remind me of that though ;-)
|
Top
|
|
|
|
#105042 - 14/07/2002 20:46
Re: fsck sucks
[Re: tfabris]
|
carpal tunnel
Registered: 08/06/1999
Posts: 7868
|
Nope, all it would really take is for someone to backport ReiserFS properly, or port the empeg-car drivers to 2.4. The code in 2.2 was broken for non-X86 systems as I found out when I expermented with this idea here. The player and upgrader apps should still be fine. After upgrades, it would be vital to get the replacement kernel on for the player app to stop having issues reading the database and music.
|
Top
|
|
|
|
#105043 - 14/07/2002 20:53
Re: fsck sucks
[Re: mschrag]
|
old hand
Registered: 31/12/2001
Posts: 1109
Loc: Petaluma, CA
|
i love jemplode! YAY!!!!!!!!!!
_________________________
----
Justin Larsen
|
Top
|
|
|
|
#105044 - 14/07/2002 22:07
Re: fsck sucks
[Re: drakino]
|
pooh-bah
Registered: 31/08/1999
Posts: 1649
Loc: San Carlos, CA
|
Nope, all it would really take is for someone to backport ReiserFS properly, or port the empeg-car drivers to 2.4
What about going to ext3 instead? I found ext3 patches for as far back at linux-2.2.19 (empegs kernel is 2.2.14). I played with it a little bit and couldn't get them to patch cleanly against the empeg tree, but somebody more familiar with the kernel than I am might be able to. Or we could try to get the empeg tree up to 2.2.19 and go from there. Anybody know if ext3 from that long ago (it is version 0.0.7a) would even work on an arm platform? It seems like this would be less work than getting all the empeg changes ported up to 2.4.
-Mike
|
Top
|
|
|
|
#105045 - 15/07/2002 04:09
Re: fsck sucks
[Re: mcomb]
|
carpal tunnel
Registered: 15/08/2000
Posts: 4859
Loc: New Jersey, USA
|
Greetings!
You haven't lived until you have gotten a surprise FSCK on a pair of 60's... 90 minutes later...
_________________________
Paul Grzelak 200GB with 48MB RAM, Illuminated Buttons and Digital Outputs
|
Top
|
|
|
|
#105046 - 15/07/2002 05:25
Re: fsck sucks
[Re: mcomb]
|
carpal tunnel
Registered: 19/05/1999
Posts: 3457
Loc: Palo Alto, CA
|
It's going to be a lot easier to patch the empeg's kernel to a later 2.2 and add ext3 than it is going to be to move to 2.4 - mainly due to memory management issues.
Worst-case, you'd just need a dummy fsck to fool the player software - but no software changes *should* be required... I think. Well, if anything the changes would just be to the init and not the actual player.
Hugo
|
Top
|
|
|
|
#105047 - 15/07/2002 07:46
Re: fsck sucks
[Re: altman]
|
carpal tunnel
Registered: 13/07/2000
Posts: 4180
Loc: Cambridge, England
|
you'd just need a dummy
The player does need to know, unfortunately; it's responsible for unmounting and remounting around a fsck and so must know the FS type. Currently (because the same code is used on the Rio Central) it knows about ext2 and ReiserFS but not ext3.
Peter
|
Top
|
|
|
|
#105048 - 15/07/2002 09:19
Re: fsck sucks
[Re: peter]
|
carpal tunnel
Registered: 29/08/2000
Posts: 14494
Loc: Canada
|
Naw, it doesn't need to know. If it thinks it needs to know (bad programming, IMHO), then we can simply have the kernel lie to it, reporting ext2 instead of ext3.
Cheers
|
Top
|
|
|
|
#105049 - 15/07/2002 09:38
Re: fsck sucks
[Re: mlord]
|
carpal tunnel
Registered: 18/01/2000
Posts: 5683
Loc: London, UK
|
It's not the reporting that's the issue. It's the call to mount(2).
_________________________
-- roger
|
Top
|
|
|
|
#105050 - 15/07/2002 10:00
Re: fsck sucks
[Re: Roger]
|
carpal tunnel
Registered: 13/07/2000
Posts: 4180
Loc: Cambridge, England
|
It's not the reporting that's the issue. It's the call to mount(2).
I guess we could use getmntent(/etc/fstab). Currently we examine the superblock magics directly, which seems more robust as it doesn't rely on /etc/fstab changing in sync with the filesystems. This won't, however, work for ext3, as it has the same superblock magic as ext2.
Peter
|
Top
|
|
|
|
#105051 - 15/07/2002 12:38
Re: fsck sucks
[Re: peter]
|
carpal tunnel
Registered: 29/08/2000
Posts: 14494
Loc: Canada
|
Is the regular "auto" setting (for fstab entries) actually handled by mount(8), or by the kernel? If the latter, then.. do what "auto" does. Probably the former, though.
For the current software, we could have Hijack simply correct things in the mount() call for ext3.
Cheers
|
Top
|
|
|
|
#105052 - 15/07/2002 23:02
Re: fsck sucks
[Re: mcomb]
|
pooh-bah
Registered: 31/08/1999
Posts: 1649
Loc: San Carlos, CA
|
OK, I made just a little progress on this today. I got a very old ext3 (0.0.2d) to patch onto the empeg kernel tree and compile. I also got updated e2fsprogs compiled. Amazingly enough it boots and seems to work as expected with ext2 partitions. I was able to create a journal file for an existing ext2 partition as well as format a partition fresh as ext3. Unfortunately I can't mount the partitions. I get this error...
empeg:/# mount -t ext3 /dev/hda4 /test
attempt to access beyond end of device
03:04: rw=0, want=2147483632, limit=9737280
dev 03:04 blksize=4096 blocknr=-5 sector=-40 size=4096 count=1
JFS: no valid journal superblock found
EXT3-fs: error loading journal.
attempt to access beyond end of device
03:04: rw=1, want=2147483632, limit=9737280
dev 03:04 blksize=4096 blocknr=-5 sector=-40 size=4096 count=1
EXT3-fs: get root inode failed
mount: wrong fs type, bad option, bad superblock on /dev/hda4,
or too many mounted file systems
If I am reading that right it is trying to read way past the end of the partition. I don't know if this old of an ext3 is actually supposed to work on an arm architechture so maybe I am having endianness issues and am just SOL? I think my next step is to try to patch up to a later version of the ext3 stuff. Any other ideas?
-Mike
|
Top
|
|
|
|
#105053 - 16/07/2002 03:05
Re: fsck sucks
[Re: mcomb]
|
carpal tunnel
Registered: 13/07/2000
Posts: 4180
Loc: Cambridge, England
|
maybe I am having endianness issues and am just SOL
Maybe you are having alignment issues and are just SOL. The ARM cannot load a 32-bit quantity from a non-4-byte-aligned address correctly (it silently gives the wrong answer). This often comes as a surprise to x86-trained kernel developers; in particular it took me a lot of hacking on ReiserFS to work around those issues in 2.2.
Peter
|
Top
|
|
|
|
#105054 - 16/07/2002 10:39
Re: fsck sucks
[Re: peter]
|
pooh-bah
Registered: 31/08/1999
Posts: 1649
Loc: San Carlos, CA
|
Maybe you are having alignment issues and are just SOL
Fair enough. When you where working with Reiser did you ever look at ext3? I am curious as to how current I would have to get it to work on an ARM, but I haven't found any info with a few google searches.
-Mike
|
Top
|
|
|
|
#105055 - 16/07/2002 11:14
Re: fsck sucks
[Re: mcomb]
|
carpal tunnel
Registered: 13/07/2000
Posts: 4180
Loc: Cambridge, England
|
When you where working with Reiser did you ever look at ext3?
No, it didn't really exist in those days. A bit of googling turned up an 0.07 for 2.2, which sounds a bit more modern than your 0.02d. I haven't found a definite answer either way about ARM compatibility, but I doubt they'd have accepted it for 2.4 stable if it only worked on x86.
Peter
|
Top
|
|
|
|
#105056 - 16/07/2002 20:51
Re: fsck sucks
[Re: peter]
|
pooh-bah
Registered: 31/08/1999
Posts: 1649
Loc: San Carlos, CA
|
Cool, thanks for looking. I tried .07 also, but couldn't get it to patch against 2.2.14. I am probably in over my head at this point as it looks like I would have to get the empeg kernel tree patched up to at least 2.2.19 before .07 is going to work :-(
-Mike
|
Top
|
|
|
|
#105057 - 17/07/2002 00:35
Re: fsck sucks
[Re: mcomb]
|
pooh-bah
Registered: 31/08/1999
Posts: 1649
Loc: San Carlos, CA
|
OK, baby steps here. The good news is I managed to patch the empeg tree up to 2.2.15 getting me just a little closer to my goal of 2.2.19. The bad news is it took about 3 hours and I broke ir in the process :-(
-Mike
|
Top
|
|
|
|
#105058 - 17/07/2002 02:29
Re: fsck sucks
[Re: mcomb]
|
carpal tunnel
Registered: 13/07/2000
Posts: 4180
Loc: Cambridge, England
|
The bad news is it took about 3 hours and I broke ir in the process :-(
Yup, that's pretty much what happens when we upgrade the kernel, too.
Peter
|
Top
|
|
|
|
#105060 - 18/07/2002 00:11
Re: fsck sucks
[Re: mcomb]
|
pooh-bah
Registered: 31/08/1999
Posts: 1649
Loc: San Carlos, CA
|
Just incase anybody cares I am patched up to 2.2.17 and everything except IR still seems to work. If I get some more time to work on it tomorrow I might actually hit 2.2.19.
BTW, Peter, do you have any suggestions on getting IR working again? With 2.2.15 I got an error message saying something like "EmpegIr:Init Failed". With the more recent versions I don't even get that, but my remote does not work
-Mike
|
Top
|
|
|
|
#105061 - 18/07/2002 05:49
Re: fsck sucks
[Re: mcomb]
|
Carpal Tunnel
Registered: 08/02/2002
Posts: 3411
|
Getting ext3 working would be fantastic...Good luck! But on the subject of "fsck sucks", I'd just like to point out that it absolutely rocks compared to scandisk.exe. Admittedly the reason for that probably has more to do with the underlying fs type, but hopefully you get my point..
_________________________
Mk2a 60GB Blue. Serial 030102962
sig.mp3: File Format not Valid.
|
Top
|
|
|
|
#105062 - 18/07/2002 07:03
Re: fsck sucks
[Re: genixia]
|
pooh-bah
Registered: 02/06/2000
Posts: 1996
Loc: Gothenburg, Sweden
|
Would that be like...
fsck sucks, but scandisk swallows
First time I saw that comparison was at a paintball tournament - "Losings sucks" shirts were popular, but one team had made their own stating "but cheating swallows" mainly as a comment on the attitudes of the teams wearing the "Losing sucks" version.
/Michael
_________________________
/Michael
|
Top
|
|
|
|
#105063 - 18/07/2002 23:28
Got it!!!!!!
[Re: mcomb]
|
pooh-bah
Registered: 31/08/1999
Posts: 1649
Loc: San Carlos, CA
|
I have just one thing to say.....
empeg:/# mount -t ext3 /dev/hda4 /test
EXT3-fs: recovery complete.
empeg:/# cat /proc/mounts
/dev/root / ext2 ro 0 0
/dev/hda2 /scratch ext2 rw,sync 0 0
none /proc proc rw 0 0
/dev/hda4 /test ext3 rw 0 0
empeg:/# echo "fsck sucks ;-)" > /test/testfile
It works! I don't know how stable it is going to be since it is still really out of date. I couldn't get the kernel upgraded past 2.2.17 w/ ext3 0.03b, but that was far enough to get it working. I am going to be out of town for the weekend, but when I get back I will try to put together instructions and a kernel patch. At that point I am going to need Mark Lord's help with faking out the player software to mount it properly. I am going to go have a celebratory beer now.
Yeah,
-Mike
|
Top
|
|
|
|
#105064 - 18/07/2002 23:34
Re: Got it!!!!!!
[Re: mcomb]
|
pooh-bah
Registered: 31/08/1999
Posts: 1649
Loc: San Carlos, CA
|
Oh, and IR is still broken :-(
|
Top
|
|
|
|
|
|