* Got rid of the B_PARTITION_DESCENDANT_BUSY flag.

* Added CheckAndMarkBusy() and UnmarkBusy() methods to KPartition.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22801 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2007-11-02 00:29:46 +00:00
parent 8354dac78e
commit 53715fe060
6 changed files with 59 additions and 33 deletions
@@ -52,12 +52,8 @@ public:
void SetBusy(bool busy);
bool IsBusy() const;
// == jobs which may affect this partition are scheduled/in progress
void SetDescendantBusy(bool busy);
bool IsDescendantBusy() const;
// == jobs which may affect a descendant of this partition are
// scheduled/in progress; IsBusy() => IsDescendantBusy()
// In the userland API, both can probably be mapped to one flag.
bool CheckAndMarkBusy(bool includeDescendants);
void UnmarkBusy(bool includeDescendants);
void SetOffset(off_t offset);
off_t Offset() const; // 0 for devices