mirror of
https://gitlab.gnome.org/GNOME/gparted
synced 2024-08-27 11:40:03 +00:00
![Mike Fleetwood](/assets/img/avatar_default.png)
RHEL / CentOS 5.6 and later officially support ext4 file system [1]. From RHEL / CentOS 5.3 ext4 file system was included as a technology preview. Ext4 file system tools are in a separate package e4fsprogs, using uniquely named commands. The standard e2fsprogs commands only support ext2 and ext3 file systems. # mkfs.ext4 /dev/sdb3 # tune2fs -l /dev/sdb3 tune2fs 1.39 (29-May-2006) tune2fs: Filesystem has unsupported feature(s) while trying to open /dev/sdb3 Couldn't find valid filesystem superblock. # echo $? 1 # tune4fs -l /dev/sdb3 tune4fs 1.41.12 (17-May-2010) Filesystem volume name: <none> Last mounted on: <not available> Filesystem UUID: ba4a9d58-7728-4b47-8a90-80e772615637 Filesystem magic number: 0xEF53 Filesystem revision #: 1 (dynamic) Filesystem features: has_journal ext_attr resize_inode dir_index filetype extent flex_bg sparse_super large_file huge_file uninit_bg dir_nlink extra_isize ... For ext4 only, search for the e4fsprogs specific commands first and the standard e2fsprogs commands second. [1] RHEL 5.6 Release Notes, 5. Filesystems and Storage https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/5/html/5.6_Release_Notes/ar01s05.html Bug #738706 - GParted doesn't support ext4 on RHEL/CentOS 5.x
60 lines
2.2 KiB
C++
60 lines
2.2 KiB
C++
/* Copyright (C) 2004 Bart
|
|
* Copyright (C) 2008, 2009, 2010 Curtis Gedak
|
|
*
|
|
* 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
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
|
|
#ifndef GPARTED_EXT2_H
|
|
#define GPARTED_EXT2_H
|
|
|
|
#include "../include/FileSystem.h"
|
|
|
|
namespace GParted
|
|
{
|
|
|
|
class ext2 : public FileSystem
|
|
{
|
|
const enum FILESYSTEM specific_type;
|
|
Glib::ustring dump_cmd;
|
|
Glib::ustring fsck_cmd;
|
|
Glib::ustring image_cmd;
|
|
Glib::ustring label_cmd;
|
|
Glib::ustring mkfs_cmd;
|
|
Glib::ustring resize_cmd;
|
|
Glib::ustring tune_cmd;
|
|
public:
|
|
ext2( enum FILESYSTEM type ) : specific_type( type ), dump_cmd( "" ), fsck_cmd( "" ), image_cmd( "" ),
|
|
label_cmd( "" ), mkfs_cmd( "" ), resize_cmd( "" ), tune_cmd( "" ) {};
|
|
FS get_filesystem_support() ;
|
|
void set_used_sectors( Partition & partition ) ;
|
|
void read_label( Partition & partition ) ;
|
|
bool write_label( const Partition & partition, OperationDetail & operationdetail ) ;
|
|
void read_uuid( Partition & partition ) ;
|
|
bool write_uuid( const Partition & partition, OperationDetail & operationdetail ) ;
|
|
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 ) ;
|
|
bool move( const Partition & partition_new,
|
|
const Partition & partition_old,
|
|
OperationDetail & operationdetail );
|
|
bool copy( const Partition & partition_new,
|
|
Partition & partition_old,
|
|
OperationDetail & operationdetail );
|
|
};
|
|
|
|
} //GParted
|
|
|
|
#endif /* GPARTED_EXT2_H */
|