[haiku-commits] haiku: hrev52774 - src/system/boot/loader

  • From: waddlesplash <waddlesplash@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Wed, 16 Jan 2019 20:35:01 -0500 (EST)

hrev52774 adds 1 changeset to branch 'master'
old head: 450dd5db3a92361e41b7ffa2043659f724adfd55
new head: 1fef0f0fa81b09796155e3e613ecbd0fb4c1fd28
overview: 
https://git.haiku-os.org/haiku/log/?qt=range&q=1fef0f0fa81b+%5E450dd5db3a92

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

1fef0f0fa81b: bootloader: Use the already-detected filesystem module...
  
  ...rather than enumerating again. Solves a TODO (all filesystems
  save tarfs and packagefs, which require special parameters and
  of course will not be on standard "partitions", have implemented
  the required function.)

                              [ Augustin Cavalier <waddlesplash@xxxxxxxxx> ]

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

Revision:    hrev52774
Commit:      1fef0f0fa81b09796155e3e613ecbd0fb4c1fd28
URL:         https://git.haiku-os.org/haiku/commit/?id=1fef0f0fa81b
Author:      Augustin Cavalier <waddlesplash@xxxxxxxxx>
Date:        Thu Jan 17 01:33:12 2019 UTC

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

1 file changed, 3 insertions(+), 7 deletions(-)
src/system/boot/loader/partitions.cpp | 10 +++-------

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

diff --git a/src/system/boot/loader/partitions.cpp 
b/src/system/boot/loader/partitions.cpp
index cfcaaa7639..ee8d2321ea 100644
--- a/src/system/boot/loader/partitions.cpp
+++ b/src/system/boot/loader/partitions.cpp
@@ -357,7 +357,7 @@ Partition::Scan(bool mountFileSystems, bool isBootDevice)
        }
 
        // find the best FS module
-       const file_system_module_info *bestFSModule = NULL;
+       file_system_module_info *bestFSModule = NULL;
        float bestFSPriority = -1;
        for (int32 i = 0; i < sNumFileSystemModules; i++) {
                if (sFileSystemModules[i]->identify_file_system == NULL)
@@ -426,12 +426,8 @@ Partition::Scan(bool mountFileSystems, bool isBootDevice)
        }
 
        // scan for file systems
-
-       if (mountFileSystems) {
-               // TODO: Use the FS module we've got, if any. Requires to 
implement the
-               // identify_file_system() hook in every FS.
-               return Mount();
-       }
+       if (mountFileSystems)
+               return _Mount(bestFSModule, NULL);
 
        return B_ENTRY_NOT_FOUND;
 }


Other related posts:

  • » [haiku-commits] haiku: hrev52774 - src/system/boot/loader - waddlesplash