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:
@@ -24,7 +24,7 @@ public:
|
|||||||
int32 CountPartitionableSpaces() const;
|
int32 CountPartitionableSpaces() const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
status_t _SetTo(partition_id partition);
|
status_t _SetTo(partition_id partition, int32 changeCounter);
|
||||||
|
|
||||||
friend class BPartition;
|
friend class BPartition;
|
||||||
|
|
||||||
|
|||||||
@@ -226,6 +226,7 @@ BDiskSystem::GetNextSupportedType(BPartition *partition, int32 *cookie,
|
|||||||
return B_BAD_VALUE;
|
return B_BAD_VALUE;
|
||||||
}
|
}
|
||||||
return _kern_get_next_supported_partition_type(partition->_ShadowID(),
|
return _kern_get_next_supported_partition_type(partition->_ShadowID(),
|
||||||
|
partition->_ChangeCounter(),
|
||||||
cookie, type);
|
cookie, type);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -260,7 +261,8 @@ BDiskSystem::IsSubSystemFor(BPartition *parent) const
|
|||||||
{
|
{
|
||||||
return (InitCheck() == B_OK
|
return (InitCheck() == B_OK
|
||||||
&& parent && parent->_IsShadow()
|
&& parent && parent->_IsShadow()
|
||||||
&& _kern_is_sub_disk_system_for(fID, parent->_ShadowID()));
|
&& _kern_is_sub_disk_system_for(fID, parent->_ShadowID(),
|
||||||
|
parent->_ChangeCounter()));
|
||||||
}
|
}
|
||||||
|
|
||||||
// _SetTo
|
// _SetTo
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ BPartitioningInfo::CountPartitionableSpaces() const
|
|||||||
|
|
||||||
// _SetTo
|
// _SetTo
|
||||||
status_t
|
status_t
|
||||||
BPartitioningInfo::_SetTo(partition_id partition)
|
BPartitioningInfo::_SetTo(partition_id partition, int32 changeCounter)
|
||||||
{
|
{
|
||||||
Unset();
|
Unset();
|
||||||
status_t error = B_OK;
|
status_t error = B_OK;
|
||||||
@@ -70,8 +70,8 @@ BPartitioningInfo::_SetTo(partition_id partition)
|
|||||||
int32 count = 0;
|
int32 count = 0;
|
||||||
int32 actualCount = 0;
|
int32 actualCount = 0;
|
||||||
do {
|
do {
|
||||||
error = _kern_get_partitionable_spaces(partition, buffer,
|
error = _kern_get_partitionable_spaces(partition, changeCounter,
|
||||||
count, &actualCount);
|
buffer, count, &actualCount);
|
||||||
if (error == B_BUFFER_OVERFLOW) {
|
if (error == B_BUFFER_OVERFLOW) {
|
||||||
// buffer to small re-allocate it
|
// buffer to small re-allocate it
|
||||||
if (buffer)
|
if (buffer)
|
||||||
|
|||||||
Reference in New Issue
Block a user