From 92ab471c493e3a126e845248eeb2da26f46f9e5e Mon Sep 17 00:00:00 2001 From: "Ithamar R. Adema" Date: Sun, 15 Sep 2013 11:31:41 +0200 Subject: [PATCH] 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! --- src/add-ons/kernel/file_systems/ntfs/fs_func.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 b7ee6ead0d..430922da9c 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; }