1 /* 2 * Copyright 2008 Haiku Inc. All rights reserved. 3 * Distributed under the terms of the MIT License. 4 * 5 * Authors: 6 * Marco Minutoli, mminutoli@gmail.com 7 */ 8 #ifndef _FSCREATOR_H_ 9 #define _FSCREATOR_H_ 10 11 #include <String.h> 12 13 #include <DiskDevice.h> 14 #include <DiskDeviceRoster.h> 15 16 class FsCreator { 17 public: 18 FsCreator(const char* devPath, BString& type, BString& volumeName, 19 const char* fsOpt, bool verbose); 20 21 bool Run(); 22 private: 23 inline BString _ReadLine(); 24 25 BString fType; 26 BString fDevicePath; 27 BString& fVolumeName; 28 const char* fFsOptions; 29 BDiskDevice fDevice; 30 BPartition* fPartition; 31 const bool fVerbose; 32 }; 33 34 #endif // _FSCREATOR_H_ 35