"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "fsremap/src/io/io_null.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.

io_null.hh  (fstransform-0.9.3-src):io_null.hh  (fstransform-0.9.4)
skipping to change at line 45 skipping to change at line 45
/** /**
* "null" class emulating I/O * "null" class emulating I/O
*/ */
class ft_io_null: public fr_io class ft_io_null: public fr_io
{ {
public: public:
enum { enum {
FC_DEVICE_LENGTH = 0, FC_DEVICE_LENGTH = 0,
FC_LOOP_EXTENTS, FC_LOOP_EXTENTS,
FC_FREE_SPACE_EXTENTS, FC_FREE_SPACE_EXTENTS,
FC_FILE_COUNT // must be equal to count of preceding enum constants FC_TO_ZERO_EXTENTS,
FC_EXTENTS_FILE_COUNT // must be equal to count of preceding enum consta
nts
}; };
static char const * const extents_label[]; // DEVICE-LENGTH, LOOP-EXTENTS an d FREE-SPACE-EXTENTS static char const * const extents_label[]; // DEVICE-LENGTH, LOOP-EXTENTS, F REE-SPACE-EXTENTS and TO-ZERO-EXTENTS
static char const * const sim_msg; // "(simulated) " static char const * const sim_msg; // "(simulated) "
private: private:
typedef fr_io super_type; typedef fr_io super_type;
protected: protected:
/** /**
* retrieve LOOP-FILE extents and FREE-SPACE extents and insert them into * retrieve LOOP-FILE extents and FREE-SPACE extents and insert them into
* the vectors loop_file_extents and free_space_extents. * the vectors loop_file_extents and free_space_extents.
skipping to change at line 74 skipping to change at line 75
* of device effective block size. * of device effective block size.
* the device effective block size is defined as follows: * the device effective block size is defined as follows:
* it is the largest power of 2 that exactly divides all physical, * it is the largest power of 2 that exactly divides all physical,
* logical and lengths in all returned extents (both for LOOP-FILE * logical and lengths in all returned extents (both for LOOP-FILE
* and for FREE-SPACE) and that also exactly exactly divides device length. * and for FREE-SPACE) and that also exactly exactly divides device length.
* *
* implementation: does nothing. * implementation: does nothing.
*/ */
virtual int read_extents(fr_vector<ft_uoff> & loop_file_extents, virtual int read_extents(fr_vector<ft_uoff> & loop_file_extents,
fr_vector<ft_uoff> & free_space_extents, fr_vector<ft_uoff> & free_space_extents,
fr_vector<ft_uoff> & to_zero_extents,
ft_uoff & ret_block_size_bitmask); ft_uoff & ret_block_size_bitmask);
/** /**
* actually copy a list of fragments from DEVICE or FREE-STORAGE, to STORAGE to FREE-DEVICE. * actually copy a list of fragments from DEVICE or FREE-STORAGE, to STORAGE to FREE-DEVICE.
* must be implemented by sub-classes. * must be implemented by sub-classes.
* note: parameters are in bytes! * note: parameters are in bytes!
* return 0 if success, else error. * return 0 if success, else error.
* *
* implementation: do nothing and return success * implementation: do nothing and return success
*/ */
 End of changes. 3 change blocks. 
2 lines changed or deleted 5 lines changed or added

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