Lines Matching defs:partition

168 	KPartition*		partition;
3011 kprintf(" partition: %p\n", mount->partition);
3030 set_debug_variable("_partition", (addr_t)mount->partition);
7368 // get the partition
7370 KPartition* partition = NULL;
7380 // get a corresponding partition from the DDM
7381 partition = ddm->RegisterPartition(normalizedDevice.Path());
7382 if (partition == NULL) {
7389 partition = ddm->RegisterPartition(deviceID);
7395 if (!partition) {
7404 PartitionRegistrar partitionRegistrar(partition, true);
7406 // Write lock the partition's device. For the time being, we keep the lock
7409 // TODO: Just mark the partition busy while mounting!
7411 if (partition) {
7412 diskDevice = ddm->WriteLockDevice(partition->Device()->ID());
7422 if (partition != NULL) {
7423 // make sure, that the partition is not busy
7424 if (partition->IsBusy()) {
7429 // if no FS name had been supplied, we get it from the partition
7431 KDiskSystem* diskSystem = partition->DiskSystem();
7446 // the partition has a reference to it), so this is safe.
7464 mount->partition = NULL;
7491 volume->partition = partition != NULL ? partition->ID() : -1;
7626 // supply the partition (if any) with the mount cookie and mark it mounted
7627 if (partition) {
7628 partition->SetMountCookie(mount->volume->private_volume);
7629 partition->SetVolumeID(mount->id);
7631 // keep a partition reference as long as the partition is mounted
7633 mount->partition = partition;
7696 // if the volume is associated with a partition, lock the device of the
7697 // partition as long as we are unmounting
7699 KPartition* partition = mount->partition;
7701 if (partition != NULL) {
7702 if (partition->Device() == NULL) {
7706 diskDevice = ddm->WriteLockDevice(partition->Device()->ID());
7714 // make sure, that the partition is not busy
7715 if (partition != NULL) {
7716 if ((flags & B_UNMOUNT_BUSY_PARTITION) == 0 && partition->IsBusy()) {
7868 // dereference the partition and mark it unmounted
7869 if (partition) {
7870 partition->SetVolumeID(-1);
7871 partition->SetMountCookie(NULL);
7874 KDiskDeviceManager::Default()->DeleteFileDevice(partition->ID());
7875 partition->Unregister();
7959 if (mount->partition != NULL && mount->partition->Device() != NULL)
7960 ioctl(mount->partition->Device()->FD(), B_FLUSH_DRIVE_CACHE);