Help answer threads with 0 replies.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 11-11-2005, 12:44 AM   #1
Registered: Sep 2003
Location: Pune, India
Distribution: Red Hat
Posts: 106

Rep: Reputation: 15
How to disable read and write caching in filesystems

i am trying to disable read and write caching for ext3 filesystem. I wanted to know is there any user-space method to do so. Also if anyone can give me a approach on hoe it can be done.

Old 11-11-2005, 03:36 AM   #2
Registered: Jun 2005
Posts: 44

Rep: Reputation: 16
When you mount filesystem, do so with sync option. If already mounted, you need to set also the remount option, like:
mount -o remount,sync /mnt/fs

When doing this from a C program, the flags to use are MS_REMOUNT (if your iflesystem is already mounted) and MS_SYNCHRONOUS.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Should I enable write caching on my raid array? abefroman Linux - Hardware 1 09-26-2005 04:38 PM
Disable Route Caching RSalameh Linux - Networking 1 02-01-2005 08:30 PM
Mounting NTFS Filesystems with Read-Write privs' apocolipse Slackware 2 12-20-2003 02:29 PM
Open office read only, K-write read/write mode lwtvh Linux - Newbie 1 07-19-2003 11:33 AM
hdparm write caching setting nouse66 Linux - Hardware 3 03-10-2003 10:13 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:43 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration