summaryrefslogtreecommitdiff
path: root/lib/ext2fs/io_manager.c
AgeCommit message (Collapse)AuthorFilesLines
2011-09-18Shorten compile commands run by the build systemTheodore Ts'o1-0/+1
The DEFS line in MCONFIG had gotten so long that it exceeded 4k, and this was starting to cause some tools heartburn. It also made "make V=1" almost useless, since trying to following the individual commands run by make was lost in the noise of all of the defines. So fix this by putting the configure-generated defines in lib/config.h and the directory pathnames to lib/dirpaths.h. In addition, clean up some vestigal defines in configure.in and in the Makefiles to further shorten the cc command lines. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2010-11-22e2fsprogs: Add discard function into struct_io_managerLukas Czerner1-0/+11
In order to provide generic "discard" function for all e2fsprogs tools add a discard function prototype into struct_io_manager. Specific function for specific io managers can be crated that way. This commit also creates unix_discard function which uses BLKDISCARD ioctl to discard data blocks on the block device and bind it into unit_io_manager structure to be available for all e2fsprogs tools. Note that BLKDISCARD is still Linux specific ioctl, however other unix systems may provide similar functionality. So far the unix_discard() remains linux specific hence is embedded in #ifdef __linux__ macro. Signed-off-by: Lukas Czerner <lczerner@redhat.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2008-08-27Remove trailing whitespace for the entire source treeTheodore Ts'o1-2/+2
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-08-27Improve future compatibility for the 64-bit I/O channel functionsTheodore Ts'o1-0/+32
Provide a C language wrapper function for io_channel_read_blk64() and io_channel_write_blk64() instead of using a C preprocessor macro, with an fallback to the old 32-bit functions if an application-provided I/O channel manager doesn't supply 64-bit method functions and the block numbers can fit in 32-bit integer. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2004-11-30Add support for passing options to the io layer using the URL syntax. For Theodore Ts'o1-0/+69
example, /tmp/test.img?offset=1024. Multiple options can separated using the & character, although at the moment the only option implemented is the offset option in the unix_io layer.