LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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, 09: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, 07:32 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 04:15 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration