On Thu, 30 Nov 2006, Szakacsits Szabolcs wrote:
> On Thu, 30 Nov 2006, Anton Altaparmakov wrote:
> > Szaka wrote: "pointless to empty journal if clean"...
> > It is NOT pointless to empty.  
> 
> It depends on how journaling works, on which we disagree. It's useless to 
> explain the consequences if you're right because I'm obviously aware of it. 
> You would have a good argument if you said that "sniff and observe Windows 
> reading all journal clusters during boot even if it's clean which means 
> quite probably that it also analyzes it".

I read the code and it does it.  I do not believe in sniffing as you put 
it.  That is useless as you never know what/why the software is doing 
something.  The code itself shows exactly what happens.  I prefer to stick 
with that.

> Anyway, ntfsresize always unconditionally emptied the journal. So what did 
> you do which made Vista booting? It's either incorrect journal checking on 
> Vista or a side-effect of your changes.

I did two things to libntfs:
        - make the journal be emptied at mount time and 
        - set the dirty bit at mount time.
Then at umount time:
        - clear the dirty bit again unless the volume was dirty when it 
was mounted.

I then did these things to ntfsresize:
        - remove the journal emptying from ntfsresize as it is done by 
libntfs now at mount time,
        - remove the setting dirty of volume as that is also done at mount 
time;
        - make ntfsresize unmount the volume if one aborts which will 
clear the dirty bit again if the volume was not dirty to start with; and 
finally,
        - disable the unmount in ntfsresize once it is going to start 
resizing ntfs as you said that unmounting at that point becomes dangerous.

This fixes ntfsresize on Vista for me.

Best regards,

        Anton
-- 
Anton Altaparmakov <aia21 at cam.ac.uk> (replace at with @)
Unix Support, Computing Service, University of Cambridge, CB2 3QH, UK
Linux NTFS maintainer, http://www.linux-ntfs.org/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to