Implemented CommitModifications(). We still need to extract port and token from the supplied messenger.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4794 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -205,8 +205,19 @@ BDiskDevice::CommitModifications(bool synchronously,
|
|||||||
BMessenger progressMessenger,
|
BMessenger progressMessenger,
|
||||||
bool receiveCompleteProgressUpdates)
|
bool receiveCompleteProgressUpdates)
|
||||||
{
|
{
|
||||||
// not implemented
|
status_t error = InitCheck();
|
||||||
return B_ERROR;
|
if (error != B_OK)
|
||||||
|
return error;
|
||||||
|
if (!_IsShadow())
|
||||||
|
return B_BAD_VALUE;
|
||||||
|
// TODO: Get port and token from the progressMessenger
|
||||||
|
port_id port = -1;
|
||||||
|
int32 token = -1;
|
||||||
|
error = _kern_commit_disk_device_modifications(ID(), port, token,
|
||||||
|
receiveCompleteProgressUpdates);
|
||||||
|
if (error == B_OK)
|
||||||
|
error = _SetTo(ID(), true, false, 0);
|
||||||
|
return error;
|
||||||
}
|
}
|
||||||
|
|
||||||
// CancelModifications
|
// CancelModifications
|
||||||
|
|||||||
Reference in New Issue
Block a user