We always resize the partition contents.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4867 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2003-09-29 21:43:11 +00:00
parent 63c99af405
commit 541c05cc85
3 changed files with 4 additions and 9 deletions
@@ -40,11 +40,9 @@ KDiskDeviceJobFactory::CreateRepairJob(partition_id partitionID,
// CreateResizeJob
KDiskDeviceJob *
KDiskDeviceJobFactory::CreateResizeJob(partition_id parentID,
partition_id partitionID, off_t size,
bool resizeContents)
partition_id partitionID, off_t size)
{
return new(nothrow) KResizeJob(parentID, partitionID, size,
resizeContents);
return new(nothrow) KResizeJob(parentID, partitionID, size);
}
// CreateMoveJob
@@ -194,11 +194,9 @@ KDiskDeviceJobGenerator::_GenerateResizeJob(KPartition *partition)
return B_BAD_VALUE;
if (!partition->Parent())
return B_ERROR;
bool hasContents = shadow->DiskSystem()
&& !(shadow->ChangeFlags() & B_PARTITION_CHANGED_INITIALIZATION);
return _AddJob(fJobFactory->CreateResizeJob(partition->Parent()->ID(),
partition->ID(),
shadow->Size(), hasContents));
shadow->Size()));
}
// _GenerateChildPlacementJobs