LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 09-13-2004, 02:45 AM   #1
A-Liang
LQ Newbie
 
Registered: Sep 2004
Location: China
Posts: 13

Rep: Reputation: 0
Cool How to ext3 file system


Hello...

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.


thanks...

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

Rep: Reputation: 30
Wrong way, maybe

Hi,

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, 11:14 PM   #3
A-Liang
LQ Newbie
 
Registered: Sep 2004
Location: China
Posts: 13

Original Poster
Rep: Reputation: 0
PankRat,

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.

Regards
Xiao Liang
 
  


Reply


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 04:39 PM
Help File System EXT3 x REISERFS julio menezes Linux - Newbie 1 03-14-2004 06:32 PM
Large tar file taking huge disk space in ext3 file system pcwulf Linux - General 2 10-20-2003 08:45 AM
Quotas : ext3 file system tropical Linux - General 4 04-13-2003 04:29 PM
Format ext3 file system? mikeshn Linux - General 5 11-03-2002 01:37 PM


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

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