[haiku-commits] haiku: hrev46059 - src/add-ons/kernel/file_systems/ntfs

  • From: ithamar@xxxxxxxxxxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sun, 15 Sep 2013 11:35:48 +0200 (CEST)

hrev46059 adds 1 changeset to branch 'master'
old head: b119365b2198a23308fed21af0145dcdc3aa272a
new head: b9f280cb8c3e73623e7c772c14b7ed8bc8ee6754
overview: http://cgit.haiku-os.org/haiku/log/?qt=range&q=b9f280c+%5Eb119365

----------------------------------------------------------------------------

b9f280c: ntfs: make sure our confidence is higher then the intel partition 
add-on
  
  This as the intel partition addon just does a very weak test, and the
  NTFS test is much safer. This prevents NTFS filesystems that have a
  valid boot sector signature but no partition table, from being
  picked up by the intel partition table add-on instead of the ntfs
  add-on.
  
  Patch provided by markh, thanks!

                          [ Ithamar R. Adema <ithamar@xxxxxxxxxxxxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev46059
Commit:      b9f280cb8c3e73623e7c772c14b7ed8bc8ee6754
URL:         http://cgit.haiku-os.org/haiku/commit/?id=b9f280c
Author:      Ithamar R. Adema <ithamar@xxxxxxxxxxxxxxxxxxx>
Date:        Sun Sep 15 09:31:41 2013 UTC

----------------------------------------------------------------------------

1 file changed, 3 insertions(+), 1 deletion(-)
src/add-ons/kernel/file_systems/ntfs/fs_func.c | 4 +++-

----------------------------------------------------------------------------

diff --git a/src/add-ons/kernel/file_systems/ntfs/fs_func.c 
b/src/add-ons/kernel/file_systems/ntfs/fs_func.c
index b7ee6ea..430922d 100644
--- a/src/add-ons/kernel/file_systems/ntfs/fs_func.c
+++ b/src/add-ons/kernel/file_systems/ntfs/fs_func.c
@@ -274,7 +274,9 @@ fs_identify_partition(int fd, partition_data *partition, 
void **_cookie)
 
        *_cookie = cookie;
 
-       return 0.8f;
+       // Make sure we return a higher number than the intel partition check
+       // as this one is more accurate.
+       return 0.82f;
 }
 
 


Other related posts:

  • » [haiku-commits] haiku: hrev46059 - src/add-ons/kernel/file_systems/ntfs - ithamar