Re: [PATCH 00/10] AXFS: Advanced XIP filesystem

2008-09-02 Thread Jared Hulbert
I found what's wrong. The size of an AxFS image created by mkfs.axfs is always n*4096+4 bytes large. So when it wants to check the magic value in the last 4 bytes, the block layer tries to read a whole 512-byte sector, which fails for loop-mounted images. If you test on real FLASH,

Re: [PATCH 00/10] AXFS: Advanced XIP filesystem

2008-09-02 Thread Jörn Engel
On Tue, 2 September 2008 09:44:19 -0700, Jared Hulbert wrote: How is one expected to read those last 4 bytes of a loopbacked file? Are they unreadable? We can add the padding. I am just wondering if this is a bug or a known limitation in the loopback handling or if there is a different

Re: [PATCH 00/10] AXFS: Advanced XIP filesystem

2008-09-02 Thread Jared Hulbert
How is one expected to read those last 4 bytes of a loopbacked file? Are they unreadable? We can add the padding. I am just wondering if this is a bug or a known limitation in the loopback handling or if there is a different safer way of reading block devs with truncated last blocks.

Re: [PATCH 00/10] AXFS: Advanced XIP filesystem

2008-09-02 Thread Geert Uytterhoeven
On Tue, 2 Sep 2008, Jared Hulbert wrote: However, there still are weird things going on, like `find' not seeing all files and directories, or just aborting, and `ls -lR' showing actual file contents in its output. Do you see this behavior for all builds for just the PS3? The `find' issue