User talk:Superleaf1995/AFPFS

From OSDev Wiki
Jump to navigation Jump to search

Binary files question

What happens if a binary file contains 0FF8h or 0FF9h? Is there a way to encapsulate binary data so that it's not scanned for these numbers? (encapsulate = put into a container) Eekee 06:22, 19 December 2019 (CST)

  • SOF should always be followed by metadata and an ASCII filename, if no such are present, the SOF is ignored. After partition signature 0FF9, there should be a SOF, and to validate it like I mentioned before. --Superleaf1995 12:32, 19 December 2019 (CST)

Metadata

  • I think the first line should be two lines, "filename length" and "filename". I don't want to edit it because it's a user page. Eekee 06:22, 19 December 2019 (CST)
  • Does the filename need to be repeated if the member id is the same? Or more generally, what happens if it's different? I'm just looking for trouble, here. ;) Eekee 06:22, 19 December 2019 (CST)
  • a logical conclusion would be that different filename OR/AND id means a different file. And

That's bad for bootloaders, that's why group Id exists tho, the OS can reserve a special group ID for the kernel (or any important file in general). If it is different, it's a different file. But it's a simple idea , so no specific rules may be followed (it can be a different file or not). I would personally assign different group IDs to files that haves same filename and same I'd as another file. --Superleaf1995 12:28, 19 December 2019 (CST)