Commit 19a27c50 authored by Anton Altaparmakov's avatar Anton Altaparmakov

NTFS: Fix really dumb logic bug in boot sector recovery.

parent 6f3894e9
...@@ -245,7 +245,7 @@ number of sectors BEFORE attempting to use it. You have been warned! ...@@ -245,7 +245,7 @@ number of sectors BEFORE attempting to use it. You have been warned!
ChangeLog ChangeLog
========= =========
Note that a technical ChangeLog aimed at kernel hackers is in fs/ntfs/ChangeLog. Note, a technical ChangeLog aimed at kernel hackers is in fs/ntfs/ChangeLog.
2.0.8: 2.0.8:
- Remove now obsolete show_inodes and posix mount option(s). - Remove now obsolete show_inodes and posix mount option(s).
...@@ -256,7 +256,7 @@ Note that a technical ChangeLog aimed at kernel hackers is in fs/ntfs/ChangeLog. ...@@ -256,7 +256,7 @@ Note that a technical ChangeLog aimed at kernel hackers is in fs/ntfs/ChangeLog.
we only support accessing files via their short file name if one we only support accessing files via their short file name if one
exists). exists).
- Fix dcache aliasing issues wrt short/long file names. - Fix dcache aliasing issues wrt short/long file names.
- Cleanups. - Cleanups and minor fixes.
2.0.7: 2.0.7:
- Just cleanups. - Just cleanups.
2.0.6: 2.0.6:
......
...@@ -33,9 +33,10 @@ ToDo: ...@@ -33,9 +33,10 @@ ToDo:
- Add new mount option case_sensitive, to determine if the driver - Add new mount option case_sensitive, to determine if the driver
treats file names as case sensitive or not. If case sensitive, create treats file names as case sensitive or not. If case sensitive, create
file names in the POSIX namespace. Otherwise create file names in the file names in the POSIX namespace. Otherwise create file names in the
LONG/WIN32 name space. By default, or when case_sensitive is set to LONG/WIN32 namespace. By default, or when case_sensitive is set to
FALSE, files remain accessible via their short file name, if it FALSE, files remain accessible via their short file name, if it
exists. exists.
- Remove really dumb logic bug in boot sector recovery code.
- Fix dcache aliasing issues wrt short/long file names via changes - Fix dcache aliasing issues wrt short/long file names via changes
to fs/ntfs/dir.c::ntfs_lookup_inode_by_name() and to fs/ntfs/dir.c::ntfs_lookup_inode_by_name() and
fs/ntfs/namei.c::ntfs_lookup(). (The latter is still TODO:) fs/ntfs/namei.c::ntfs_lookup(). (The latter is still TODO:)
......
...@@ -441,7 +441,7 @@ static struct buffer_head *read_ntfs_boot_sector(struct super_block *sb, ...@@ -441,7 +441,7 @@ static struct buffer_head *read_ntfs_boot_sector(struct super_block *sb,
ntfs_error(sb, "Primary boot sector is invalid."); ntfs_error(sb, "Primary boot sector is invalid.");
} else if (!silent) } else if (!silent)
ntfs_error(sb, read_err_str, "primary"); ntfs_error(sb, read_err_str, "primary");
if (NTFS_SB(sb)->on_errors & ~ON_ERRORS_RECOVER) { if (!(NTFS_SB(sb)->on_errors & ON_ERRORS_RECOVER)) {
if (bh_primary) if (bh_primary)
brelse(bh_primary); brelse(bh_primary);
if (!silent) if (!silent)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment