File / Filesystem Handler Implementation
Posted: Sat Mar 17, 2007 6:40 pm
I was wondering how the file or directory handlers can be implemented. I already have an IDE driver to read LBA28 and LBA48, and also can detect the partitions present in a hard disk, and also have all of the support I need to read and write freely to ATA hard disks.
Now my questions are:
Now my questions are:
- How can I handle something like:
Should I create a fixed cache file or partition in the disk to keep track of the full path?Code: Select all
/Documents/letters/1998/5/12/family/c.doc
Is it even neccessary to keep the full path at all times?
Or is it better to recursively find the start of each part of the path and get rid of it to continue with the following part of the path until finding the start of the final "c.doc" file?
- Should the pathname have a size limit, or should it be permitted to have even 512 Kilobytes of pathname or even more?
- Should the pathname have a size limit, or should it be permitted to have even 512 Kilobytes of pathname or even more? Or should the string size be filesystem-dependent?
- Are there SCSI, ATA or SATA hard disks with more than 512 byte sectors?