From mboxrd@z Thu Jan 1 00:00:00 1970 From: inbox1.sudheer@gmail.com (Sudheer Divakaran) Date: Tue, 10 May 2011 12:38:49 +0530 Subject: How does the kernel chooses the 'vfat' module for fat32 partitions? In-Reply-To: References: Message-ID: To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org Hi Mulyadi, On Tue, May 10, 2011 at 12:10 PM, Mulyadi Santosa wrote: > hi Sudheer... > > On Tue, May 10, 2011 at 11:48, Sudheer Divakaran > wrote: >> Hi List, >> >> I have one doubt regarding the component which determines that 'vfat' >> module is the correct module to be used for accessing fat32 file >> systems and how does vfat.ko ?became the ideal candidate for accessing >> fat32 partition? > > AFAIK, kernel simply iterates the filesystem module so far loaded (the > ones you see in /proc/filesystems). Whichever match the superblock or > main metadata of the target partition, that is the one which is gonna > used... > vfat module was not loaded before, it got loaded only after I issued the mount command. We can see this info in the udev log. Moreover there was no entry for the usbstick partition in /etc/fstab. So someone kernel/userspace takes the decision that vfat.ko should be used for managing fat32 partitions. I was trying to identify this component. -- Thanks Sudheer