* 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:
Ingo Weinhold
2007-10-04 23:48:18 +00:00
parent 6748659272
commit db5c68ca46
17 changed files with 245 additions and 259 deletions
+2 -1
View File
@@ -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;