2011-11-28 05:33:51 -07:00
|
|
|
/* Copyright (C) 2012 Mike Fleetwood
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
2014-01-23 03:59:48 -07:00
|
|
|
* GNU General Public License for more details.
|
2011-11-28 05:33:51 -07:00
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
2014-01-23 03:59:48 -07:00
|
|
|
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
2011-11-28 05:33:51 -07:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
2013-05-27 05:20:16 -06:00
|
|
|
#ifndef GPARTED_LVM2_PV_H
|
|
|
|
#define GPARTED_LVM2_PV_H
|
2011-11-28 05:33:51 -07:00
|
|
|
|
|
|
|
#include "../include/FileSystem.h"
|
|
|
|
|
|
|
|
namespace GParted
|
|
|
|
{
|
|
|
|
|
|
|
|
class lvm2_pv : public FileSystem
|
|
|
|
{
|
|
|
|
public:
|
2015-05-16 02:38:22 -06:00
|
|
|
const Glib::ustring get_custom_text( CUSTOM_TEXT ttype, int index = 0 ) const;
|
2011-11-28 05:33:51 -07:00
|
|
|
FS get_filesystem_support() ;
|
2014-02-14 18:26:32 -07:00
|
|
|
bool is_busy( const Glib::ustring & path ) ;
|
2011-11-28 05:33:51 -07:00
|
|
|
void set_used_sectors( Partition & partition ) ;
|
|
|
|
bool create( const Partition & new_partition, OperationDetail & operationdetail ) ;
|
|
|
|
bool resize( const Partition & partition_new, OperationDetail & operationdetail, bool fill_partition = false ) ;
|
|
|
|
bool check_repair( const Partition & partition, OperationDetail & operationdetail ) ;
|
2012-07-25 14:05:33 -06:00
|
|
|
bool remove( const Partition & partition, OperationDetail & operationdetail ) ;
|
2011-11-28 05:33:51 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
} //GParted
|
|
|
|
|
2013-05-27 05:20:16 -06:00
|
|
|
#endif /* GPARTED_LVM2_PV_H */
|