Warn about VOLUME_MOUNTED_ON_NT4 wrt Vista in layout.h and do not set the flag

in ntfsfix.
This commit is contained in:
aia21 2006-12-09 11:27:37 +00:00
parent 82747f3c47
commit 8640540b53
3 changed files with 7 additions and 7 deletions

View File

@ -86,10 +86,8 @@ xx/xx/2006 - x.xx.x - .
with. (Anton)
- Introduce NTFS_MNT_FORENSIC mount option for logfile dumping for
example otherwise the logfile gets wiped out by the mount attempt if
it is not read-only. (Anton)
- Fix ntfsresize to unmount the volume when finished/exiting so it does
not leave the volume in an inconsistent state. Somewhat crude
solution using atexit() but it works... (Anton)
it is not read-only. Also use it for ntfsresize as it wishes to do
its own logfile emptying and volume dirtying. (Anton)
- Raise FUSE dependence to 2.6.1 (the most stable and featured ATM),
rename --enable-fuse-module to more clear --enable-ntfsmount and
cleanup autotools scripts a bit. (Yura)
@ -99,6 +97,8 @@ xx/xx/2006 - x.xx.x - .
returns ntfs inode number instead of opened inode itself.
Reimplement ntfs_pathname_to_inode() as wrapper to new API. (Yura)
- ntfsmount: fix rename if destination already exists. (Yura)
- ntfsfix: do not set VOLUME_MOUNTED_ON_NT4 flag as it causes Vista to
not boot any more.
21/06/2006 - 1.13.1 - Various fixes.

View File

@ -1989,6 +1989,9 @@ typedef struct {
/**
* enum VOLUME_FLAGS - Possible flags for the volume (16-bit).
*
* WARNING: Setting VOLUME_MOUNTED_ON_NT4 on a Volume causes Windows Vista to
* fail to boot (it hangs on a black screen).
*/
typedef enum {
VOLUME_IS_DIRTY = const_cpu_to_le16(0x0001),

View File

@ -253,9 +253,6 @@ static int set_dirty_flag(ntfs_volume *vol)
* and fix it for us.
*/
flags = vol->flags | VOLUME_IS_DIRTY;
/* If NTFS volume version >= 2.0 then set mounted on NT4 flag. */
if (vol->major_ver >= 2)
flags |= VOLUME_MOUNTED_ON_NT4;
if (OLD_ntfs_volume_set_flags(vol, flags)) {
ntfs_log_info(FAILED);
ntfs_log_error("Error setting volume flags.\n");