I need to be able to see files from both RAW 2324 byte sectors and normal 2048 byte sectors with one filesystem. I thought of computing a run length encoded table as the CD is cached to hard disk, which identifies which sectors are 2048 or 2324. This table would then be read from our pseudo-CD block device via ioctl by the modified isofs during mount. The table would be a pre-requisite for mounting. The new isofs would take this table into account when computing block numbers for input to our pseudo-CD block device. Our block device would then re-translate those numbers when receiving the read request from the isofs. Are there any restrictions in VFS or elsewhere that would make non-512 disible block sizes (2324 bytes) impossible? I already know it will be at least extremely painful. I thought of spliting the cached CD into two mount points, each with a different file system, but I still have the problem of all the directory sectors for both types of file being in 2048 format. Any ideas, warnings or criticisms would be greatly appreciated.
