From ca30f986f79eb97939176e24f6775cc6daed3c1a Mon Sep 17 00:00:00 2001 From: Curtis Gedak Date: Tue, 19 Oct 2010 13:35:53 -0600 Subject: [PATCH] Add virtual move method to FileSystem class This is preparation work for the following bug report: Bug #589555 - Moving a swap partition needlessly copies all "data" on it --- include/FileSystem.h | 6 +++++- include/btrfs.h | 5 +++++ include/ext2.h | 6 +++++- include/ext3.h | 6 +++++- include/ext4.h | 6 +++++- include/fat16.h | 6 +++++- include/fat32.h | 6 +++++- include/hfs.h | 6 +++++- include/hfsplus.h | 6 +++++- include/jfs.h | 6 +++++- include/linux_swap.h | 6 +++++- include/ntfs.h | 6 +++++- include/reiser4.h | 6 +++++- include/reiserfs.h | 6 +++++- include/ufs.h | 6 +++++- include/xfs.h | 6 +++++- src/btrfs.cc | 9 +++++++++ src/ext2.cc | 8 ++++++++ src/ext3.cc | 8 ++++++++ src/ext4.cc | 8 ++++++++ src/fat16.cc | 8 ++++++++ src/fat32.cc | 8 ++++++++ src/hfs.cc | 8 ++++++++ src/hfsplus.cc | 10 +++++++++- src/jfs.cc | 8 ++++++++ src/linux_swap.cc | 8 ++++++++ src/ntfs.cc | 8 ++++++++ src/reiser4.cc | 8 ++++++++ src/reiserfs.cc | 8 ++++++++ src/ufs.cc | 10 +++++++++- src/xfs.cc | 8 ++++++++ 31 files changed, 203 insertions(+), 17 deletions(-) diff --git a/include/FileSystem.h b/include/FileSystem.h index 67fa481f..9d26294b 100644 --- a/include/FileSystem.h +++ b/include/FileSystem.h @@ -1,5 +1,5 @@ /* Copyright (C) 2004 Bart - * Copyright (C) 2008 Curtis Gedak + * 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 @@ -42,6 +42,10 @@ public: virtual bool resize( const Partition & partition_new, OperationDetail & operationdetail, bool fill_partition = false ) = 0 ; + virtual bool move( const Partition & partition_new + , const Partition & partition_old + , OperationDetail & operationdetail + ) = 0 ; virtual bool copy( const Glib::ustring & src_part_path, const Glib::ustring & dest_part_path, OperationDetail & operationdetail ) = 0 ; diff --git a/include/btrfs.h b/include/btrfs.h index 2f6aafca..1f28fc68 100644 --- a/include/btrfs.h +++ b/include/btrfs.h @@ -1,4 +1,5 @@ /* Copyright (C) 2009,2010 Luca Bruno + * Copyright (C) 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 @@ -32,6 +33,10 @@ public: bool write_label( 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 move( const Partition & partition_new + , const Partition & partition_old + , OperationDetail & operationdetail + ) ; bool copy( const Glib::ustring & src_part_path, const Glib::ustring & dest_part_path, OperationDetail & operationdetail ) ; diff --git a/include/ext2.h b/include/ext2.h index 81dc6c25..42e55f97 100644 --- a/include/ext2.h +++ b/include/ext2.h @@ -1,5 +1,5 @@ /* Copyright (C) 2004 Bart - * Copyright (C) 2008 Curtis Gedak + * 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 @@ -34,6 +34,10 @@ public: bool write_label( 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 move( const Partition & partition_new + , const Partition & partition_old + , OperationDetail & operationdetail + ) ; bool copy( const Glib::ustring & src_part_path, const Glib::ustring & dest_part_path, OperationDetail & operationdetail ) ; diff --git a/include/ext3.h b/include/ext3.h index fc19bc38..caf4c26f 100644 --- a/include/ext3.h +++ b/include/ext3.h @@ -1,5 +1,5 @@ /* Copyright (C) 2004 Bart - * Copyright (C) 2008 Curtis Gedak + * 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 @@ -34,6 +34,10 @@ public: bool write_label( 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 move( const Partition & partition_new + , const Partition & partition_old + , OperationDetail & operationdetail + ) ; bool copy( const Glib::ustring & src_part_path, const Glib::ustring & dest_part_path, OperationDetail & operationdetail ) ; diff --git a/include/ext4.h b/include/ext4.h index f82bf0ec..4f04baed 100644 --- a/include/ext4.h +++ b/include/ext4.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2008 Curtis Gedak +/* 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 @@ -33,6 +33,10 @@ public: bool write_label( 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 move( const Partition & partition_new + , const Partition & partition_old + , OperationDetail & operationdetail + ) ; bool copy( const Glib::ustring & src_part_path, const Glib::ustring & dest_part_path, OperationDetail & operationdetail ) ; diff --git a/include/fat16.h b/include/fat16.h index 133c6827..d0d527d5 100644 --- a/include/fat16.h +++ b/include/fat16.h @@ -1,5 +1,5 @@ /* Copyright (C) 2004 Bart - * Copyright (C) 2008 Curtis Gedak + * 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 @@ -34,6 +34,10 @@ public: bool write_label( 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 move( const Partition & partition_new + , const Partition & partition_old + , OperationDetail & operationdetail + ) ; bool copy( const Glib::ustring & src_part_path, const Glib::ustring & dest_part_path, OperationDetail & operationdetail ) ; diff --git a/include/fat32.h b/include/fat32.h index 350cb7e9..9d20dcea 100644 --- a/include/fat32.h +++ b/include/fat32.h @@ -1,5 +1,5 @@ /* Copyright (C) 2004 Bart - * Copyright (C) 2008 Curtis Gedak + * 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 @@ -34,6 +34,10 @@ public: bool write_label( 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 move( const Partition & partition_new + , const Partition & partition_old + , OperationDetail & operationdetail + ) ; bool copy( const Glib::ustring & src_part_path, const Glib::ustring & dest_part_path, OperationDetail & operationdetail ) ; diff --git a/include/hfs.h b/include/hfs.h index 094c8815..8455c03f 100644 --- a/include/hfs.h +++ b/include/hfs.h @@ -1,5 +1,5 @@ /* Copyright (C) 2004 Bart - * Copyright (C) 2008 Curtis Gedak + * 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 @@ -34,6 +34,10 @@ public: bool write_label( 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 move( const Partition & partition_new + , const Partition & partition_old + , OperationDetail & operationdetail + ) ; bool copy( const Glib::ustring & src_part_path, const Glib::ustring & dest_part_path, OperationDetail & operationdetail ) ; diff --git a/include/hfsplus.h b/include/hfsplus.h index 33a138b4..4bbc0ed9 100644 --- a/include/hfsplus.h +++ b/include/hfsplus.h @@ -1,5 +1,5 @@ /* Copyright (C) 2004 Bart - * Copyright (C) 2008 Curtis Gedak + * 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 @@ -34,6 +34,10 @@ public: bool write_label( 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 move( const Partition & partition_new + , const Partition & partition_old + , OperationDetail & operationdetail + ) ; bool copy( const Glib::ustring & src_part_path, const Glib::ustring & dest_part_path, OperationDetail & operationdetail ) ; diff --git a/include/jfs.h b/include/jfs.h index ea9c5e84..77e793ae 100644 --- a/include/jfs.h +++ b/include/jfs.h @@ -1,5 +1,5 @@ /* Copyright (C) 2004 Bart - * Copyright (C) 2008 Curtis Gedak + * 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 @@ -34,6 +34,10 @@ public: bool write_label( 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 move( const Partition & partition_new + , const Partition & partition_old + , OperationDetail & operationdetail + ) ; bool copy( const Glib::ustring & src_part_path, const Glib::ustring & dest_part_path, OperationDetail & operationdetail ) ; diff --git a/include/linux_swap.h b/include/linux_swap.h index 0e77c6b7..f7d3295a 100644 --- a/include/linux_swap.h +++ b/include/linux_swap.h @@ -1,5 +1,5 @@ /* Copyright (C) 2004 Bart - * Copyright (C) 2008 Curtis Gedak + * 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 @@ -34,6 +34,10 @@ public: bool write_label( 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 move( const Partition & partition_new + , const Partition & partition_old + , OperationDetail & operationdetail + ) ; bool copy( const Glib::ustring & src_part_path, const Glib::ustring & dest_part_path, OperationDetail & operationdetail ) ; diff --git a/include/ntfs.h b/include/ntfs.h index 7b6f640c..26680137 100644 --- a/include/ntfs.h +++ b/include/ntfs.h @@ -1,5 +1,5 @@ /* Copyright (C) 2004 Bart - * Copyright (C) 2008 Curtis Gedak + * 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 @@ -34,6 +34,10 @@ public: bool write_label( 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 move( const Partition & partition_new + , const Partition & partition_old + , OperationDetail & operationdetail + ) ; bool copy( const Glib::ustring & src_part_path, const Glib::ustring & dest_part_path, OperationDetail & operationdetail ) ; diff --git a/include/reiser4.h b/include/reiser4.h index 3a5820d9..cc14dd16 100644 --- a/include/reiser4.h +++ b/include/reiser4.h @@ -1,5 +1,5 @@ /* Copyright (C) 2004 Bart - * Copyright (C) 2008 Curtis Gedak + * 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 @@ -34,6 +34,10 @@ public: bool write_label( 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 move( const Partition & partition_new + , const Partition & partition_old + , OperationDetail & operationdetail + ) ; bool copy( const Glib::ustring & src_part_path, const Glib::ustring & dest_part_path, OperationDetail & operationdetail ) ; diff --git a/include/reiserfs.h b/include/reiserfs.h index c08bc66f..48393335 100644 --- a/include/reiserfs.h +++ b/include/reiserfs.h @@ -1,5 +1,5 @@ /* Copyright (C) 2004 Bart - * Copyright (C) 2008 Curtis Gedak + * 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 @@ -34,6 +34,10 @@ public: bool write_label( 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 move( const Partition & partition_new + , const Partition & partition_old + , OperationDetail & operationdetail + ) ; bool copy( const Glib::ustring & src_part_path, const Glib::ustring & dest_part_path, OperationDetail & operationdetail ) ; diff --git a/include/ufs.h b/include/ufs.h index 8b3c1eca..46e7ffe3 100644 --- a/include/ufs.h +++ b/include/ufs.h @@ -1,5 +1,5 @@ /* Copyright (C) 2004 Bart - * Copyright (C) 2008 Curtis Gedak + * 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 @@ -34,6 +34,10 @@ public: bool write_label( 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 move( const Partition & partition_new + , const Partition & partition_old + , OperationDetail & operationdetail + ) ; bool copy( const Glib::ustring & src_part_path, const Glib::ustring & dest_part_path, OperationDetail & operationdetail ) ; diff --git a/include/xfs.h b/include/xfs.h index 46c92366..11bba4e9 100644 --- a/include/xfs.h +++ b/include/xfs.h @@ -1,5 +1,5 @@ /* Copyright (C) 2004 Bart - * Copyright (C) 2008 Curtis Gedak + * 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 @@ -34,6 +34,10 @@ public: bool write_label( 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 move( const Partition & partition_new + , const Partition & partition_old + , OperationDetail & operationdetail + ) ; bool copy( const Glib::ustring & src_part_path, const Glib::ustring & dest_part_path, OperationDetail & operationdetail ) ; diff --git a/src/btrfs.cc b/src/btrfs.cc index 7d698038..0cd39a3f 100644 --- a/src/btrfs.cc +++ b/src/btrfs.cc @@ -1,4 +1,5 @@ /* Copyright (C) 2009,2010 Luca Bruno + * Copyright (C) 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 @@ -106,6 +107,14 @@ bool btrfs::write_label( const Partition & partition, OperationDetail & operatio return true ; } +bool btrfs::move( const Partition & partition_new + , const Partition & partition_old + , OperationDetail & operationdetail + ) +{ + return true ; +} + bool btrfs::copy( const Glib::ustring & src_part_path, const Glib::ustring & dest_part_path, OperationDetail & operationdetail ) diff --git a/src/ext2.cc b/src/ext2.cc index 572a3bc0..806c7317 100644 --- a/src/ext2.cc +++ b/src/ext2.cc @@ -121,6 +121,14 @@ bool ext2::resize( const Partition & partition_new, OperationDetail & operationd return ! execute_command( str_temp, operationdetail ) ; } +bool ext2::move( const Partition & partition_new + , const Partition & partition_old + , OperationDetail & operationdetail + ) +{ + return true ; +} + bool ext2::copy( const Glib::ustring & src_part_path, const Glib::ustring & dest_part_path, OperationDetail & operationdetail ) diff --git a/src/ext3.cc b/src/ext3.cc index 7b058929..23788a1c 100644 --- a/src/ext3.cc +++ b/src/ext3.cc @@ -122,6 +122,14 @@ bool ext3::resize( const Partition & partition_new, OperationDetail & operationd return ! execute_command( str_temp, operationdetail ) ; } +bool ext3::move( const Partition & partition_new + , const Partition & partition_old + , OperationDetail & operationdetail + ) +{ + return true ; +} + bool ext3::copy( const Glib::ustring & src_part_path, const Glib::ustring & dest_part_path, OperationDetail & operationdetail ) diff --git a/src/ext4.cc b/src/ext4.cc index a5eb48fc..b837c52f 100644 --- a/src/ext4.cc +++ b/src/ext4.cc @@ -125,6 +125,14 @@ bool ext4::resize( const Partition & partition_new, OperationDetail & operationd return ! execute_command( str_temp, operationdetail ) ; } +bool ext4::move( const Partition & partition_new + , const Partition & partition_old + , OperationDetail & operationdetail + ) +{ + return true ; +} + bool ext4::copy( const Glib::ustring & src_part_path, const Glib::ustring & dest_part_path, OperationDetail & operationdetail ) diff --git a/src/fat16.cc b/src/fat16.cc index 67690e2f..a9d418ab 100644 --- a/src/fat16.cc +++ b/src/fat16.cc @@ -161,6 +161,14 @@ bool fat16::resize( const Partition & partition_new, OperationDetail & operation return true ; } +bool fat16::move( const Partition & partition_new + , const Partition & partition_old + , OperationDetail & operationdetail + ) +{ + return true ; +} + bool fat16::copy( const Glib::ustring & src_part_path, const Glib::ustring & dest_part_path, OperationDetail & operationdetail ) diff --git a/src/fat32.cc b/src/fat32.cc index 2512687d..f7990dde 100644 --- a/src/fat32.cc +++ b/src/fat32.cc @@ -160,6 +160,14 @@ bool fat32::resize( const Partition & partition_new, OperationDetail & operation return true ; } +bool fat32::move( const Partition & partition_new + , const Partition & partition_old + , OperationDetail & operationdetail + ) +{ + return true ; +} + bool fat32::copy( const Glib::ustring & src_part_path, const Glib::ustring & dest_part_path, OperationDetail & operationdetail ) diff --git a/src/hfs.cc b/src/hfs.cc index ba37066d..aa6fed7d 100644 --- a/src/hfs.cc +++ b/src/hfs.cc @@ -91,6 +91,14 @@ bool hfs::resize( const Partition & partition_new, OperationDetail & operationde return true ; } +bool hfs::move( const Partition & partition_new + , const Partition & partition_old + , OperationDetail & operationdetail + ) +{ + return true ; +} + bool hfs::copy( const Glib::ustring & src_part_path, const Glib::ustring & dest_part_path, OperationDetail & operationdetail ) diff --git a/src/hfsplus.cc b/src/hfsplus.cc index 2234ea8a..bb5126df 100644 --- a/src/hfsplus.cc +++ b/src/hfsplus.cc @@ -1,5 +1,5 @@ /* Copyright (C) 2004 Bart - * Copyright (C) 2008 Curtis Gedak + * 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 @@ -89,6 +89,14 @@ bool hfsplus::resize( const Partition & partition_new, OperationDetail & operati return true ; } +bool hfsplus::move( const Partition & partition_new + , const Partition & partition_old + , OperationDetail & operationdetail + ) +{ + return true ; +} + bool hfsplus::copy( const Glib::ustring & src_part_path, const Glib::ustring & dest_part_path, OperationDetail & operationdetail ) diff --git a/src/jfs.cc b/src/jfs.cc index 33ae3ccb..d8b7f408 100644 --- a/src/jfs.cc +++ b/src/jfs.cc @@ -216,6 +216,14 @@ bool jfs::resize( const Partition & partition_new, OperationDetail & operationde return return_value ; } +bool jfs::move( const Partition & partition_new + , const Partition & partition_old + , OperationDetail & operationdetail + ) +{ + return true ; +} + bool jfs::copy( const Glib::ustring & src_part_path, const Glib::ustring & dest_part_path, OperationDetail & operationdetail ) diff --git a/src/linux_swap.cc b/src/linux_swap.cc index 946f2764..d604684a 100644 --- a/src/linux_swap.cc +++ b/src/linux_swap.cc @@ -93,6 +93,14 @@ bool linux_swap::resize( const Partition & partition_new, OperationDetail & oper return exit_status ; } +bool linux_swap::move( const Partition & partition_new + , const Partition & partition_old + , OperationDetail & operationdetail + ) +{ + return true ; +} + bool linux_swap::copy( const Glib::ustring & src_part_path, const Glib::ustring & dest_part_path, OperationDetail & operationdetail ) diff --git a/src/ntfs.cc b/src/ntfs.cc index b34ced7b..aecf9285 100644 --- a/src/ntfs.cc +++ b/src/ntfs.cc @@ -149,6 +149,14 @@ bool ntfs::resize( const Partition & partition_new, OperationDetail & operationd return return_value ; } +bool ntfs::move( const Partition & partition_new + , const Partition & partition_old + , OperationDetail & operationdetail + ) +{ + return true ; +} + bool ntfs::copy( const Glib::ustring & src_part_path, const Glib::ustring & dest_part_path, OperationDetail & operationdetail ) diff --git a/src/reiser4.cc b/src/reiser4.cc index d6457390..f36e7c14 100644 --- a/src/reiser4.cc +++ b/src/reiser4.cc @@ -112,6 +112,14 @@ bool reiser4::resize( const Partition & partition_new, OperationDetail & operati return true ; } +bool reiser4::move( const Partition & partition_new + , const Partition & partition_old + , OperationDetail & operationdetail + ) +{ + return true ; +} + bool reiser4::copy( const Glib::ustring & src_part_path, const Glib::ustring & dest_part_path, OperationDetail & operationdetail ) diff --git a/src/reiserfs.cc b/src/reiserfs.cc index 4075dd68..9409d101 100644 --- a/src/reiserfs.cc +++ b/src/reiserfs.cc @@ -133,6 +133,14 @@ bool reiserfs::resize( const Partition & partition_new, OperationDetail & operat return ( exit_status == 0 || exit_status == 256 ) ; } +bool reiserfs::move( const Partition & partition_new + , const Partition & partition_old + , OperationDetail & operationdetail + ) +{ + return true ; +} + bool reiserfs::copy( const Glib::ustring & src_part_path, const Glib::ustring & dest_part_path, OperationDetail & operationdetail ) diff --git a/src/ufs.cc b/src/ufs.cc index f6b2e69e..80b8cfe5 100644 --- a/src/ufs.cc +++ b/src/ufs.cc @@ -1,5 +1,5 @@ /* Copyright (C) 2004 Bart - * Copyright (C) 2008 Curtis Gedak + * 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 @@ -57,6 +57,14 @@ bool ufs::resize( const Partition & partition_new, OperationDetail & operationde return true ; } +bool ufs::move( const Partition & partition_new + , const Partition & partition_old + , OperationDetail & operationdetail + ) +{ + return true ; +} + bool ufs::copy( const Glib::ustring & src_part_path, const Glib::ustring & dest_part_path, OperationDetail & operationdetail ) diff --git a/src/xfs.cc b/src/xfs.cc index fee402fd..9d67d685 100644 --- a/src/xfs.cc +++ b/src/xfs.cc @@ -222,6 +222,14 @@ bool xfs::resize( const Partition & partition_new, OperationDetail & operationde return return_value ; } +bool xfs::move( const Partition & partition_new + , const Partition & partition_old + , OperationDetail & operationdetail + ) +{ + return true ; +} + bool xfs::copy( const Glib::ustring & src_part_path, const Glib::ustring & dest_part_path, OperationDetail & operationdetail )