c - Implementing ls command for NTFS in Linux -


i trying build bash script provides functionalities such ls,pwd,cat etc. working on ntfs in linux system. suppose have ntfs image , open file fopen. then, read sectors such bpb residing @ 0x0b , fetched general info ntfs image. need reach root directory pointer traverse through filesystem in order implement functions ls , pwd. google'd lot internal details , offsets of ntfs not find out how achieve goal. can not progress further without understandable documentation or samples.

any help, documentation, hint, offset table etc. highly appreciated.

thank you.

i'm guessing learning exercise. so, first:

  1. writing bashlike interpreter specific filesystem wrong thing do. you should concentrating on understanding details of ntfs filesystem instead.

  2. writing ls, cat able work files in specific filesystem wrong thing do. you should concentrating on understanding details of ntfs filesystem instead.

  3. if write filesystem driver (say using fuse), original bash, ls, cat automatically work filesystem. because driver able translate system calls open , read filesystem specific procedure.

finally:

  1. learn fuse. awesome. see hello world fuse module. run it, play it.

  2. download sources ntfs-3g, ntfs driver used gnu/linux distros these days. uses fuse. learn how works.


Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -