xref: /haiku/src/kits/storage/disk_device/jobs/ResizeJob.h (revision e81a954787e50e56a7f06f72705b7859b6ab06d1)
1 /*
2  * Copyright 2007, Ingo Weinhold, ingo_weinhold@gmx.de.
3  * Distributed under the terms of the MIT License.
4  */
5 #ifndef _RESIZE_JOB_H
6 #define _RESIZE_JOB_H
7 
8 #include "DiskDeviceJob.h"
9 
10 
11 namespace BPrivate {
12 
13 
14 class ResizeJob : public DiskDeviceJob {
15 public:
16 
17 								ResizeJob(PartitionReference* partition,
18 									PartitionReference* child, off_t size,
19 									off_t contentSize);
20 	virtual						~ResizeJob();
21 
22 	virtual	status_t			Do();
23 
24 protected:
25 			off_t				fSize;
26 			off_t				fContentSize;
27 };
28 
29 
30 }	// namespace BPrivate
31 
32 using BPrivate::ResizeJob;
33 
34 #endif	// _RESIZE_JOB_H
35