"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "fsremap/src/args.hh" between
fstransform-0.9.3-src.tar.gz and fstransform-0.9.4.tar.gz

About: fstransform is a tool to change a file-system from one format to another, for example from jfs, xfs, or reiser to ext2, ext3, or ext4, in-place and without the need for backup.

args.hh  (fstransform-0.9.3-src):args.hh  (fstransform-0.9.4)
skipping to change at line 33 skipping to change at line 33
* Author: max * Author: max
*/ */
#ifndef FSREMAP_ARGS_HH #ifndef FSREMAP_ARGS_HH
#define FSREMAP_ARGS_HH #define FSREMAP_ARGS_HH
#include "types.hh" // for ft_uint, ft_size #include "types.hh" // for ft_uint, ft_size
FT_NAMESPACE_BEGIN FT_NAMESPACE_BEGIN
enum fr_storage_size { FC_MEM_BUFFER_SIZE, FC_SECONDARY_STORAGE_SIZE, FC_PRIMARY _STORAGE_EXACT_SIZE, FC_SECONDARY_STORAGE_EXACT_SIZE, FC_STORAGE_SIZE_N, }; enum fr_storage_size { FC_MEM_BUFFER_SIZE, FC_SECONDARY_STORAGE_SIZE, FC_PRI MARY_STORAGE_EXACT_SIZE, FC_SECONDARY_STORAGE_EXACT_SIZE, FC_STORAGE_SIZE_N, };
enum fr_clear_free_space { FC_CLEAR_AUTODETECT, FC_CLEAR_ALL, FC_CLEAR_MINIMAL, FC_CLEAR_NONE, }; enum fr_clear_free_space { FC_CLEAR_AUTODETECT, FC_CLEAR_ALL, FC_CLEAR_MINIMAL, FC_CLEAR_NONE, };
enum fr_job_id_kind { FC_JOB_ID_AUTODETECT = 0 }; enum fr_job_id_kind { FC_JOB_ID_AUTODETECT = 0 };
enum fr_io_kind { FC_IO_AUTODETECT, FC_IO_POSIX, FC_IO_TEST, FC_IO_SELF_TEST }; enum fr_io_kind { FC_IO_AUTODETECT, FC_IO_TEST, FC_IO_SELF_TEST, FC_IO_
enum fr_ui_kind { FC_UI_NONE, FC_UI_TTY }; POSIX, FC_IO_PREALLOC };
enum fr_mount_points { FC_MOUNT_POINT_DEVICE = 0, FC_MOUNT_POINT_LOOP_FILE,
FC_MOUNT_POINTS_N };
enum fr_ui_kind { FC_UI_NONE, FC_UI_TTY };
class fr_args class fr_args
{ {
public: public:
const char * program_name; // detected from command line. default: "fsremap" const char * program_name; // detected from command line. default: "fs
const char * root_dir; // if NULL, will autodetect remap"
const char * io_args[3]; // some I/O will need less than 3 arguments const char * root_dir; // write logs and persistence files inside
this folder. if NULL, will autodetect
const char * io_args[3]; // some I/O will need less than 3 arguments
const char * mount_points[FC_MOUNT_POINTS_N]; // device and loop file mount
points. currently only needed by fr_io_prealloc
const char * loop_dev; // loop device. currently only needed by fr
_io_prealloc
const char * ui_arg; const char * ui_arg;
const char * umount_cmd; const char * cmd_losetup; // 'losetup' command. currently only needed
ft_size storage_size[FC_STORAGE_SIZE_N]; // if 0, will autodetect by fr_io_prealloc
ft_uint job_id; // if FC_JOB_ID_AUTODETECT, will autodetect const char * cmd_umount;
ft_size storage_size[FC_STORAGE_SIZE_N]; // if 0, will autodetect
ft_uint job_id; // if FC_JOB_ID_AUTODETECT, will autodetect
fr_clear_free_space job_clear; fr_clear_free_space job_clear;
fr_io_kind io_kind; // if FC_IO_AUTODETECT, will autodetect fr_io_kind io_kind; // if FC_IO_AUTODETECT, will autodetect
fr_ui_kind ui_kind; fr_ui_kind ui_kind;
bool force_run; // if true, some sanity checks will be WARNINGS ins bool force_run; // if true, some sanity checks will be WARN
tead of ERRORS INGS instead of ERRORS
bool simulate_run; // if true, remapping algorithm runs WITHOUT readin bool simulate_run; // if true, remapping algorithm runs WITHOU
g or writing device blocks T reading or writing device blocks
bool ask_questions; // if true, remapping algorithm will ask confirmati bool ask_questions; // if true, remapping algorithm will ask co
on and read answer from stdin before actually starting nfirmation and read answer from stdin before actually starting
fr_args(); fr_args();
}; };
FT_NAMESPACE_END FT_NAMESPACE_END
#endif /* FSREMAP_ARGS_HH */ #endif /* FSREMAP_ARGS_HH */
 End of changes. 6 change blocks. 
17 lines changed or deleted 28 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)