Partitions do now know whether they have already been published and

avoid attempts to publish a second time.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22198 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2007-09-07 00:05:06 +00:00
parent c22ee2bf75
commit 6b6f6b7240
4 changed files with 29 additions and 3 deletions
@@ -49,6 +49,7 @@ public:
virtual status_t Open(int flags, int *fd);
virtual status_t PublishDevice();
virtual status_t UnpublishDevice();
bool IsPublished() const;
void SetBusy(bool busy);
bool IsBusy() const;
@@ -234,6 +235,7 @@ protected:
uint32 fAlgorithmData;
int32 fReferenceCount;
bool fObsolete;
bool fPublished;
static int32 fNextID;
};