Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

Brief description :

Linux driver gives us a chance to interface with an NTFS filesystem. Thanks to this driver, we can use built-in Linux commands on an NTFS filesystem.

Ex : ls, chown, chmod, cd, locate, rm, ln etc.

Question :

Where can I find this source code ?

Why :

Try to be familiar with NTFS

share|improve this question
1  
Just to be clear, ls, locate etc. have nothing to do with ntfs itself. These utilities use systemcalls to get their information. –  Ulrich Dangel Jun 7 '12 at 16:12
add comment

2 Answers 2

If you are using the in kernel NTFS driver, your distro may have a kernel source package, which you can install and poke around. It is usually installed to /usr/src

If you used the ntfs-3g driver, the code is here: NTFS-3G Tarball

share|improve this answer
    
which one is driver for ntfs in /usr/src ? –  user1423470 Jun 7 '12 at 13:33
    
I have looked in NTFS-3G tarball, but I could not see implementation of locate. I am looking also source code of locate, ln, rmdir for ntfs. –  user1423470 Jun 7 '12 at 13:38
    
@user1423470 locate is an external utility, unrelated to NTFS. –  Chris Down Jun 7 '12 at 16:39
    
I agree with Chris Down. I believe that locate, ln, rmdir are not dependedent on a specific FS. In other words, I believe they are written to work with any file system. –  bigdaveyl Jun 7 '12 at 17:17
add comment

NTFS driver is found inside the fs/ntfs folder in the linux kernel source tree.

Find the code here : http://lxr.linux.no/linux+v3.5.3/fs/ntfs/

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.