954,234 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Mount operation is taking much time in linux 2.6

Hi folks,

I’m having a doubt in the mounting of floppy in my application.

mount(“/dev/sdc”(source dir), ”/fdHD/0/”(Our dest dir) "vfat", l_uReadWrite | MS_SYNCHRONOUS, NULL);

This is the system call which we are using to mount to mount he floppy to our desired folder. When I use this system call it is taking much time in linux 2.6. But we are using the same code in Linux 2.4, at that time the mount operation is happening very fast.

So what I did I replaced the mount system call by system(“mount –t vfat /dev/sdc /fdHD/0/”) . Now when we transfer, the operation is happening very fast. So what is did I removed the MS_SYNCHRONOUS flag from the mount system call. So now it is working fine in 2.6 kernel.

Now my doubt is what the use of MS_SYNCHRONOUS flag is? Why removing the flag making the transfer operation very fast? whatis the effect of this flag in mounting?

What might be the reason for this? Please help me friends?

ravanan
Newbie Poster
8 posts since Apr 2011
Reputation Points: 10
Solved Threads: 0
 

i have extracted file kernel 2.6.38.1 in linux but i am unable to install it on my system

vijaybansal
Newbie Poster
3 posts since Aug 2011
Reputation Points: 10
Solved Threads: 0
 

hi,

vijaybansal
Newbie Poster
3 posts since Aug 2011
Reputation Points: 10
Solved Threads: 0
 

hi,
how i can download kernel 2.6.38.1 rpm

vijaybansal
Newbie Poster
3 posts since Aug 2011
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: