Small changes due to modified syscalls.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4046 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
5ee968b3df
commit
247a3aae82
@ -24,7 +24,7 @@ public:
|
||||
int32 CountPartitionableSpaces() const;
|
||||
|
||||
private:
|
||||
status_t _SetTo(partition_id partition);
|
||||
status_t _SetTo(partition_id partition, int32 changeCounter);
|
||||
|
||||
friend class BPartition;
|
||||
|
||||
|
@ -226,6 +226,7 @@ BDiskSystem::GetNextSupportedType(BPartition *partition, int32 *cookie,
|
||||
return B_BAD_VALUE;
|
||||
}
|
||||
return _kern_get_next_supported_partition_type(partition->_ShadowID(),
|
||||
partition->_ChangeCounter(),
|
||||
cookie, type);
|
||||
}
|
||||
|
||||
@ -260,7 +261,8 @@ BDiskSystem::IsSubSystemFor(BPartition *parent) const
|
||||
{
|
||||
return (InitCheck() == B_OK
|
||||
&& parent && parent->_IsShadow()
|
||||
&& _kern_is_sub_disk_system_for(fID, parent->_ShadowID()));
|
||||
&& _kern_is_sub_disk_system_for(fID, parent->_ShadowID(),
|
||||
parent->_ChangeCounter()));
|
||||
}
|
||||
|
||||
// _SetTo
|
||||
|
@ -62,7 +62,7 @@ BPartitioningInfo::CountPartitionableSpaces() const
|
||||
|
||||
// _SetTo
|
||||
status_t
|
||||
BPartitioningInfo::_SetTo(partition_id partition)
|
||||
BPartitioningInfo::_SetTo(partition_id partition, int32 changeCounter)
|
||||
{
|
||||
Unset();
|
||||
status_t error = B_OK;
|
||||
@ -70,8 +70,8 @@ BPartitioningInfo::_SetTo(partition_id partition)
|
||||
int32 count = 0;
|
||||
int32 actualCount = 0;
|
||||
do {
|
||||
error = _kern_get_partitionable_spaces(partition, buffer,
|
||||
count, &actualCount);
|
||||
error = _kern_get_partitionable_spaces(partition, changeCounter,
|
||||
buffer, count, &actualCount);
|
||||
if (error == B_BUFFER_OVERFLOW) {
|
||||
// buffer to small re-allocate it
|
||||
if (buffer)
|
||||
|
Loading…
x
Reference in New Issue
Block a user