Review your favorite Linux distribution.
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 09-13-2004, 01:45 AM   #1
LQ Newbie
Registered: Sep 2004
Location: China
Posts: 13

Rep: Reputation: 0
Cool How to ext3 file system


I plan to develop an application with C for Red Hat Linux Enterprise AS2.1 platform...

The function is as follows:
- freeze the file system(ext2 or ext3)
- take the backup
- thaw the file system.

But I don't know that how to freeze the file system with ioctl or other system calls?
So I want to get some help.
Please tell me for detail usage and notice items.


Xiao Liang
Old 09-13-2004, 08:34 AM   #2
Registered: Jan 2004
Location: Duesseldorf /Germany
Distribution: Gentoo amd64 / Debian
Posts: 226

Rep: Reputation: 30
Wrong way, maybe


I think your thinking in the wrong direction.
(eg, doing somithing the unneccesary hard way)

How about

- umount
- dd to somewhere else
- mount

Or something like it.

To "freeze" a filesystem it must not be accessed by any other process anyway,
if it is not being used, you can do a umount.
Old 09-13-2004, 10:14 PM   #3
LQ Newbie
Registered: Sep 2004
Location: China
Posts: 13

Original Poster
Rep: Reputation: 0

Thank you for help.

Freeze file system to make other process which accessing it hang or not to make any other process access it.
Thus when doing backup, it is not necessary to unmount file system.

Xiao Liang


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
changing file system to ext3 mohtasham1983 Linux - Newbie 8 06-28-2005 03:39 PM
Help File System EXT3 x REISERFS julio menezes Linux - Newbie 1 03-14-2004 05:32 PM
Large tar file taking huge disk space in ext3 file system pcwulf Linux - General 2 10-20-2003 07:45 AM
Quotas : ext3 file system tropical Linux - General 4 04-13-2003 03:29 PM
Format ext3 file system? mikeshn Linux - General 5 11-03-2002 12:37 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:34 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