Re-assign UFS to be a basic supported file system (!13)
There is no prospect of there being ufs-tools on Linux. The was a project which did release ufs-tools version 0.1 in 2004, but has been inactive since then. http://ufs-linux.sourceforge.net/ Copying and moving is now implemented for file systems in the basic supported category. Also mounting and unmounting of unsupported file system and reporting their usage while mounted has been added. This is all the support that GParted has ever implemented for UFS. Therefore re-assign UFS as a basic supported file system as it looses no functionality. Closes !13 - Support copying and moving of unsupported partition content
This commit is contained in:
parent
95903efb1f
commit
d3ef32096a
|
@ -68,5 +68,4 @@ EXTRA_DIST = \
|
|||
reiser4.h \
|
||||
reiserfs.h \
|
||||
udf.h \
|
||||
ufs.h \
|
||||
xfs.h
|
||||
|
|
|
@ -89,16 +89,16 @@ enum FSType
|
|||
FS_REISER4 = 24,
|
||||
FS_REISERFS = 25,
|
||||
FS_UDF = 26,
|
||||
FS_UFS = 27,
|
||||
FS_XFS = 28,
|
||||
FS_XFS = 27,
|
||||
|
||||
// Other recognised file system types
|
||||
FS_BITLOCKER = 29,
|
||||
FS_GRUB2_CORE_IMG = 30,
|
||||
FS_ISO9660 = 31,
|
||||
FS_LINUX_SWRAID = 32,
|
||||
FS_LINUX_SWSUSPEND = 33,
|
||||
FS_REFS = 34,
|
||||
FS_BITLOCKER = 28,
|
||||
FS_GRUB2_CORE_IMG = 29,
|
||||
FS_ISO9660 = 30,
|
||||
FS_LINUX_SWRAID = 31,
|
||||
FS_LINUX_SWSUSPEND = 32,
|
||||
FS_REFS = 33,
|
||||
FS_UFS = 34,
|
||||
FS_ZFS = 35,
|
||||
|
||||
// Partition space usage colours
|
||||
|
|
|
@ -1,35 +0,0 @@
|
|||
/* 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_UFS_H
|
||||
#define GPARTED_UFS_H
|
||||
|
||||
#include "FileSystem.h"
|
||||
|
||||
namespace GParted
|
||||
{
|
||||
|
||||
class ufs : public FileSystem
|
||||
{
|
||||
public:
|
||||
FS get_filesystem_support() ;
|
||||
};
|
||||
|
||||
} //GParted
|
||||
|
||||
#endif /* GPARTED_UFS_H */
|
|
@ -63,5 +63,4 @@ src/nilfs2.cc
|
|||
src/reiser4.cc
|
||||
src/reiserfs.cc
|
||||
src/udf.cc
|
||||
src/ufs.cc
|
||||
src/xfs.cc
|
||||
|
|
|
@ -52,7 +52,6 @@
|
|||
#include "hfsplus.h"
|
||||
#include "reiser4.h"
|
||||
#include "udf.h"
|
||||
#include "ufs.h"
|
||||
|
||||
#include <parted/parted.h>
|
||||
#include <cerrno>
|
||||
|
@ -4180,7 +4179,6 @@ void GParted_Core::init_filesystems()
|
|||
FILESYSTEM_MAP[FS_REISER4] = new reiser4();
|
||||
FILESYSTEM_MAP[FS_REISERFS] = new reiserfs();
|
||||
FILESYSTEM_MAP[FS_UDF] = new udf();
|
||||
FILESYSTEM_MAP[FS_UFS] = new ufs();
|
||||
FILESYSTEM_MAP[FS_XFS] = new xfs();
|
||||
FILESYSTEM_MAP[FS_BITLOCKER] = NULL;
|
||||
FILESYSTEM_MAP[FS_GRUB2_CORE_IMG] = NULL;
|
||||
|
@ -4188,6 +4186,7 @@ void GParted_Core::init_filesystems()
|
|||
FILESYSTEM_MAP[FS_LINUX_SWRAID] = NULL;
|
||||
FILESYSTEM_MAP[FS_LINUX_SWSUSPEND] = NULL;
|
||||
FILESYSTEM_MAP[FS_REFS] = NULL;
|
||||
FILESYSTEM_MAP[FS_UFS] = NULL;
|
||||
FILESYSTEM_MAP[FS_ZFS] = NULL;
|
||||
}
|
||||
|
||||
|
|
|
@ -78,7 +78,6 @@ gpartedbin_SOURCES = \
|
|||
reiser4.cc \
|
||||
reiserfs.cc \
|
||||
udf.cc \
|
||||
ufs.cc \
|
||||
xfs.cc
|
||||
|
||||
gpartedbin_LDADD = $(GTHREAD_LIBS) $(GTKMM_LIBS)
|
||||
|
|
|
@ -115,7 +115,6 @@ Glib::ustring Utils::get_color( FSType filesystem )
|
|||
case FS_REISER4: return "#887FA3"; // Purple Medium
|
||||
case FS_REISERFS: return "#ADA7C8"; // Purple Hilight
|
||||
case FS_UDF: return "#105210"; // Accent Green Shadow [+]
|
||||
case FS_UFS: return "#D1940C"; // Accent Yellow Dark
|
||||
case FS_XFS: return "#EED680"; // Accent Yellow
|
||||
case FS_BITLOCKER: return "#494066"; // Purple Shadow
|
||||
case FS_GRUB2_CORE_IMG: return "#666666"; // Dark Gray [*]
|
||||
|
@ -123,6 +122,7 @@ Glib::ustring Utils::get_color( FSType filesystem )
|
|||
case FS_LINUX_SWRAID: return "#5A4733"; // Dark brown [*]
|
||||
case FS_LINUX_SWSUSPEND: return "#884631"; // Red Dark
|
||||
case FS_REFS: return "#2AB98A"; // Medium Aquamarine [*]
|
||||
case FS_UFS: return "#D1940C"; // Accent Yellow Dark
|
||||
case FS_ZFS: return "#CC763D"; // Darker Orange [*]
|
||||
case FS_USED: return "#F8F8BA"; // Light Tan Yellow [*]
|
||||
case FS_UNUSED: return "#FFFFFF"; // White
|
||||
|
@ -237,7 +237,6 @@ int Utils::get_filesystem_label_maxlength( FSType filesystem )
|
|||
case FS_REISER4 : return 16 ;
|
||||
case FS_REISERFS : return 16 ;
|
||||
case FS_UDF : return 126; // and only 63 if label contains character above U+FF
|
||||
//case FS_UFS : return ;
|
||||
case FS_XFS : return 12 ;
|
||||
|
||||
default : return 30 ;
|
||||
|
@ -357,7 +356,6 @@ const Glib::ustring Utils::get_filesystem_kernel_name( FSType fstype )
|
|||
case FS_REISER4 : return "reiser4";
|
||||
case FS_REISERFS : return "reiserfs";
|
||||
case FS_UDF : return "udf";
|
||||
case FS_UFS : return "ufs";
|
||||
case FS_XFS : return "xfs";
|
||||
default : return "";
|
||||
}
|
||||
|
@ -386,7 +384,6 @@ Glib::ustring Utils::get_filesystem_software( FSType filesystem )
|
|||
case FS_REISER4 : return "reiser4progs" ;
|
||||
case FS_REISERFS : return "reiserfsprogs / reiserfs-utils" ;
|
||||
case FS_UDF : return "udftools";
|
||||
case FS_UFS : return "" ;
|
||||
case FS_XFS : return "xfsprogs, xfsdump" ;
|
||||
|
||||
default : return "" ;
|
||||
|
|
38
src/ufs.cc
38
src/ufs.cc
|
@ -1,38 +0,0 @@
|
|||
/* 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/>.
|
||||
*/
|
||||
|
||||
#include "ufs.h"
|
||||
#include "FileSystem.h"
|
||||
|
||||
namespace GParted
|
||||
{
|
||||
|
||||
FS ufs::get_filesystem_support()
|
||||
{
|
||||
FS fs( FS_UFS );
|
||||
|
||||
fs .busy = FS::GPARTED ;
|
||||
fs .copy = GParted::FS::GPARTED ;
|
||||
fs .move = GParted::FS::GPARTED ;
|
||||
fs .online_read = FS::GPARTED ;
|
||||
|
||||
return fs ;
|
||||
}
|
||||
|
||||
} //GParted
|
||||
|
||||
|
Loading…
Reference in New Issue