Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Journaling problem?

Journaling problem?
Thread Tools
Mac Elite
Join Date: May 2002
Status: Offline
Reply With Quote
Jul 28, 2004, 11:46 AM
 
I've been noticing missing files and files that have reverted to a previous version on occasion. Is this related to Journaling? or omething else?
     
Admin Emeritus
Join Date: Oct 1999
Location: Zurich, Switzerland
Status: Offline
Reply With Quote
Jul 28, 2004, 01:41 PM
 
HFS+ journaling does not journal the contents of files, so it has to be something else.

Besides, the journal is only ever used if the machine crashes, so if you've always shut down cleanly, the journal should not be involved at all.

tooki
     
Mac Elite
Join Date: May 2002
Status: Offline
Reply With Quote
Jul 28, 2004, 06:40 PM
 
It wouldn't mistakenly think the system has crashed and replace the file with an older version?
     
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Jul 28, 2004, 10:07 PM
 
That isn't how the journal works. It's at a lower level than that, so that wouldn't be it. If you really think it's the journal, though, you could try turning it off and see if the problem goes away.

Do you have any third-party software (e.g. Retrospect or whatever that is) that might be causing this?
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
Admin Emeritus
Join Date: Oct 1999
Location: Zurich, Switzerland
Status: Offline
Reply With Quote
Jul 29, 2004, 12:04 PM
 
Originally posted by headbirth:
It wouldn't mistakenly think the system has crashed and replace the file with an older version?
As I said above, HFS+ journaling does not journal the contents of files. It's not keeping an older version, so there's no way it could revert you to it. (HFS+ journaling ONLY journals changes to the directory.)

And no, there's no way it could think the system crashed.

Here's how journaling works:

1. Some program needs to save a change to disk and executes the commands to do so.
2. Rather than making the change directly, the filesystem first writes a journal (think of it as a post-it note) to itself, outlining what changes it's going to make.
3. Then it actually makes the changes.
4. When the changes have been successfully saved, it deletes the journal.

Now, if the process gets interrupted somewhere during step 3 (any interruption like that will require a re-mounting of the disk), then when the disk is re-mounted, the operating system sees that the journal is still there, meaning that whatever changes are outlined in the journal may not have been successfully completed. To make sure that the disk is not left in that in-between state, it rolls back all the directory changes listed in the journal, thus returning the disk to a consistent state. The journaling does not, and cannot, affect the contents of files.

tooki
     
Mac Elite
Join Date: Jan 2001
Location: Kansas City, Mo
Status: Offline
Reply With Quote
Jul 29, 2004, 03:56 PM
 
Good explanation tooki.

I never did really understand what journaling was for although it is enabled on my pb.
     
Mac Elite
Join Date: May 2002
Status: Offline
Reply With Quote
Jul 29, 2004, 08:16 PM
 
Thanks for the Journaling info ... I was a little foggy on that as well. It's not something that's repeatable and only has happened a few times.

I'll check into my third party products, which there are only 3 or 4 of and see what turns up.

Thanks!
     
   
Thread Tools
Forum Links
Forum 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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 06:25 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2