LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
Search this Thread
Old 02-19-2007, 10:09 AM   #1
nitinbaldi
LQ Newbie
 
Registered: Sep 2006
Posts: 12

Rep: Reputation: 0
File system corruption


I am implementing Multi-User Hibernation in Linux using Suspend2.
The scenario is as :
There are two users using a system, User_A and User_B.
User_A starts the system, carries his work and then hibernates.
User_B starts the system, carries his work and then hibernates.
User_A comes in, resumes his session, and continues his work and then shuts down the system.
User_B comes in, does the same thing.

Now I have achieved this thing for a single user. But when there are multiple users, I face the problem of file-system corruption. This is coz suppose User_A hibernated with /mnt/c unmounted and when User_B started the system (power-on), /mnt/c will get mounted which will wash out the journal of User_A and lead to file-system corruption such as Multiply claimed blocks.

I think I am in catch-22 situation now. Can anyone propose a probable solution to it?
Also one more significant thing, I am able to separate the process as User Space and Kernel Space processes. Take help of this thing while giving your suggestions...
 
Old 02-20-2007, 08:32 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,564
Blog Entries: 54

Rep: Reputation: 2928Reputation: 2928Reputation: 2928Reputation: 2928Reputation: 2928Reputation: 2928Reputation: 2928Reputation: 2928Reputation: 2928Reputation: 2928Reputation: 2928
First and only thing comes to mind would be to use some form of overlay or versioning FS. No idea if it can be done at all.
 
  


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
File System Corruption - Causes and Consequences? Ingla Linux - General 3 10-10-2006 12:59 PM
possible file system corruption beosmr.x Mandriva 23 06-09-2006 12:48 AM
Best file system for corruption protection? Wyk3d Mandriva 3 12-24-2004 07:17 PM
File Corruption in Red Hat 7.3 File Server dmurph2k2 Red Hat 3 10-09-2003 03:30 PM
File Corruption on Red Hat 7.3 File Server dmurph2k2 Linux - General 2 10-09-2003 01:38 PM


All times are GMT -5. The time now is 05:23 AM.

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