Magic at ROUGOL and SASAUG
Pages: 1 2
Rick Murray (539) 13840 posts |
How about Linux? http://www.osnews.com/story/21766/Linux_Kernel_Patch_Works_Around_Microsoft_s_FAT_Patents To quote here:
So either you have used Linux or something derived from Linux, or a component used within the RISC OS world uses more recent Linux-derived code? At any rate, it looks like thanks to some American patent bo*****s, we possibly shouldn’t rely on short file names to mean anything at all if a valid long file name exists; and as such, that corrupted entry may in fact be entirely intentional. :-/ |
Rick Murray (539) 13840 posts |
Yup. Just looked at the kernel patch – that is exactly what this is. To quote Jeff:
And to quote the kernel patch:
Additionally, the ‘extension’ is a slash and two nulls (check!) and the rest is random bytes. This is a file with a Linux broken&patent-friendly long filename. |
David R. Lane (77) 766 posts |
@Jeff Doggett |
David R. Lane (77) 766 posts |
@Rick Murray I don’t know how this will be interpreted by Textile, but the character looking a bit like an x preceding the second e has hex number &84. The two dots following the forward slash are two null characters (&00). The hex numbers for the above would be better perhaps. 01 62 00 65 00 61 00 67 00 6C 00 0F 00 84 65 00 62 00 6F 00 6F 00 74 00 2E 00 00 00 7A 00 69 00 20 00 0F 05 01 1A 10 10 2F 00 00Bye! Bedtime! |
Rick Murray (539) 13840 posts |
Try looking at a Kanji filename, you’ll see a lot less null bytes. Long filenames are 16 bit Unicode, and since the ones you are looking at are plain alphabet letters, the second byte serves no purpose… |
Ronald May (387) 407 posts |
@David |
David R. Lane (77) 766 posts |
@Ronald I have made a file reappear under Fat32FS by renaming it. Can anyone explain that? I am still experimenting. It doesn’t seem to be simply that objects with long filenames disappear as suggested by the explanations of Rick and Jeff, because some of the objects with longfilenames do not disappear (see the screen shot in an earlier post). In the sector dumps I notice that the initial letter of some filenames has been replaced by the character with number &E5. These files do not appear under Fat32fs or SCSI FS. Is that how a file gets ‘deleted’? |
Dave Higton (1515) 3526 posts |
Exactly. If there are no directory entries beyond that one, the first character is replaced with 0, else it’s replaced by &E5. An initial 0 means “don’t bother looking beyond here”. |
Rick Murray (539) 13840 posts |
Possibly because that rename generates a valid short file name.
Because they have valid short file names as well… Let me explain – it is supposed to work like this: every file has a short 8.3 name. A special directory table holds the associated long file name entries. These were optional and you could always use the 8.3 name. Thanks to the patent, the patent applies to using long file names in association with short names. Therefore the patent workaround is to generate long file names without any associated 8.3 name. The short name will be junk. What we are seeing here is the result of that. It has implications, and reminds me I can never use Linux to save files I want played by mplayer under Windows (can’t handle kanji, needs the 8.3 name).
I think so. I recall the old DOS undelete used to ask for the first character of the name of restored files. |
Dave Higton (1515) 3526 posts |
There’s no special table; long names are held in a contiguous series of entries in the normal directory table. |
David R. Lane (77) 766 posts |
@Dave Higton, Rick, Ronald and Jeff For one 4GB stick the report is: *disKtype SCSI::0 SCSI::0 Regular file, size off the scale (18446744073436921344 bytes) * |
Ronald May (387) 407 posts |
I dont know for sure what the regular file size is about, it may be for showing the size of disk image files primarily. I have read about the progression of Fat filesystems before and it is enough to make your head spin. At least when working with Jeff’s formatter there is some hope for some support, or to establish some groundrules. |
Pages: 1 2