2 * Copyright 2002-2013 Haiku, Inc. All rights reserved.
3 * Distributed under the terms of the MIT license.
9 #include <DiskDeviceDefs.h>
11 #include <HashString.h>
14 #include "StringForSize.h"
20 void dump_partition_info(const BPartition
* partition
);
22 bool is_valid_partitionable_space(size_t size
);
25 class SpaceIDMap
: public HashMap
<HashString
, partition_id
> {
28 virtual ~SpaceIDMap();
30 partition_id
SpaceIDFor(partition_id parentID
,
34 partition_id fNextSpaceID
;
38 class SizeSlider
: public BSlider
{
40 SizeSlider(const char* name
, const char* label
,
41 BMessage
* message
, off_t offset
,
42 off_t size
, uint32 minGranularity
);
43 virtual ~SizeSlider();
45 virtual void SetValue(int32 value
);
46 virtual const char* UpdateText() const;
49 void SetSize(off_t size
);
52 off_t
MaxPartitionSize() const;
58 off_t fMaxPartitionSize
;
60 mutable char fStatusLabel
[64];