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:
writing
bashlike interpreter specific filesystem wrong thing do. you should concentrating on understanding details of ntfs filesystem instead.writing
ls,catable work files in specific filesystem wrong thing do. you should concentrating on understanding details of ntfs filesystem instead.if write filesystem driver (say using fuse), original
bash,ls,catautomatically work filesystem. because driver able translate system callsopen,readfilesystem specific procedure.
finally:
learn fuse. awesome. see
hello worldfuse module. run it, play it.download sources ntfs-3g, ntfs driver used gnu/linux distros these days. uses fuse. learn how works.
Comments
Post a Comment