* Added the partition size as parameter to the file and partitioning
system initialize() hooks. It's often the only info about the
partition one needs and thus locking the partition just to get it is
no longer necessary.
* intel partitioning system:
- Removed passing around block sizes. We require 512 byte sectors
anyway. In fact using the parent partition's block size was even
wrong.
- Simplified writing the partition map sector.
- Simplified and corrected the partition map initialization.
- We don't fail identifying a partition anymore, if the partition map
contains no partitions. We would never identify a freshly
initialized partition map before.
- Made pm_identify() more intelligent: It determines the priority to
return depending on whether the partition is the device itself and
whether we have recognized child partitions.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22447 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -5200,9 +5200,10 @@ _kern_initialize_volume(const char* fsName, const char *partition,
|
||||
// initialize
|
||||
fssh_status_t status;
|
||||
if (fsModule->initialize) {
|
||||
status = (*fsModule->initialize)(fd, -1, name, parameters, -1);
|
||||
status = (*fsModule->initialize)(fd, -1, name, parameters, 0, -1);
|
||||
// We've got no partition or job IDs -- the FS will hopefully
|
||||
// ignore that.
|
||||
// TODO: Get the actual size!
|
||||
} else
|
||||
status = FSSH_B_NOT_SUPPORTED;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user