OpenFirmware handles now report a size of 1024 GB for now - so that the
partition modules won't complain about a disk too small to hold a partition. Should be fixed, though. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4614 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -62,3 +62,12 @@ Handle::WriteAt(void *cookie, off_t pos, const void *buffer, size_t bufferSize)
|
|||||||
return B_ERROR;
|
return B_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
off_t
|
||||||
|
Handle::Size() const
|
||||||
|
{
|
||||||
|
// ToDo: fix this!
|
||||||
|
return 1024LL * 1024 * 1024 * 1024;
|
||||||
|
// 1024 GB
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -22,6 +22,8 @@ class Handle : public ConsoleNode {
|
|||||||
virtual ssize_t ReadAt(void *cookie, off_t pos, void *buffer, size_t bufferSize);
|
virtual ssize_t ReadAt(void *cookie, off_t pos, void *buffer, size_t bufferSize);
|
||||||
virtual ssize_t WriteAt(void *cookie, off_t pos, const void *buffer, size_t bufferSize);
|
virtual ssize_t WriteAt(void *cookie, off_t pos, const void *buffer, size_t bufferSize);
|
||||||
|
|
||||||
|
virtual off_t Size() const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
int fHandle;
|
int fHandle;
|
||||||
bool fOwnHandle;
|
bool fOwnHandle;
|
||||||
|
|||||||
Reference in New Issue
Block a user