-
Notifications
You must be signed in to change notification settings - Fork 987
Comparing changes
Open a pull request
base repository: coreutils/coreutils
base: master
head repository: coreutils/coreutils
compare: fiemap-copy
- 15 commits
- 7 files changed
- 3 contributors
Commits on Jun 11, 2010
-
cp: Add FIEMAP support for efficient sparse file copy
* src/fiemap.h: Add fiemap.h for fiemap ioctl(2) support. Copied from linux's include/linux/fiemap.h, with minor formatting changes. * src/copy.c (copy_reg): Now, when `cp' invoked with --sparse=[WHEN] option, we will try to do FIEMAP-copy if the underlaying file system support it, fall back to a normal copy if it fails.
Configuration menu - View commit details
-
Copy full SHA for 1ba1e9a - Browse repository at this point
Copy the full SHA 1ba1e9aView commit details -
tests: add a new test for FIEMAP-copy
* tests/cp/sparse-fiemap: Add a new test for FIEMAP-copy against a loopbacked ext4 partition. * tests/Makefile.am (sparse-fiemap): Reference the new test.
Configuration menu - View commit details
-
Copy full SHA for e3dca50 - Browse repository at this point
Copy the full SHA e3dca50View commit details -
tests: sparse-fiemap: factor out some set-up
* tests/cp/sparse-fiemap: Cd into test directory sooner.
Jim Meyering committedJun 11, 2010 Configuration menu - View commit details
-
Copy full SHA for 9cc9dba - Browse repository at this point
Copy the full SHA 9cc9dbaView commit details -
tests: exercise more of the new FIEMAP copying code
* tests/cp/sparse-fiemap: Ensure that a file with many extents (more than fit in copy.c's internal 4KiB buffer) is copied properly.
Jim Meyering committedJun 11, 2010 Configuration menu - View commit details
-
Copy full SHA for 578db28 - Browse repository at this point
Copy the full SHA 578db28View commit details -
tests: require root only if current partition is neither btrfs nor xfs
* tests/cp/sparse-fiemap: Don't require root access if current partition is btrfs or xfs. Use init.sh, not test-lib.sh.
Jim Meyering committedJun 11, 2010 Configuration menu - View commit details
-
Copy full SHA for e62e22b - Browse repository at this point
Copy the full SHA e62e22bView commit details -
tests: test fiemap-enabled cp more thoroughly
* tests/cp/sparse-fiemap: More tests.
Jim Meyering committedJun 11, 2010 Configuration menu - View commit details
-
Copy full SHA for 912e7d2 - Browse repository at this point
Copy the full SHA 912e7d2View commit details -
tests: relax the root-tests cross-check
* cfg.mk (sc_root_tests): Allow spaces before "require_root_", now that tests/cp/sparse-fiemap has a conditional use.
Jim Meyering committedJun 11, 2010 Configuration menu - View commit details
-
Copy full SHA for 50975af - Browse repository at this point
Copy the full SHA 50975afView commit details -
tests: improve fiemap test to work with 4 FS types; fall back on ext4
* tests/cp/sparse-fiemap: Improve. * tests/filefrag-extent-compare: New file.
Jim Meyering committedJun 11, 2010 Configuration menu - View commit details
-
Copy full SHA for e955826 - Browse repository at this point
Copy the full SHA e955826View commit details -
copy.c: adjust comments, tweak semantics
* src/copy.c (fiemap_copy): Rename from fiemap_copy_ok. Add/improve comments. Remove local, "fail". (fiemap_copy): Do not require caller to set "normal_copy_required" before calling fiemap_copy. Report ioctl failure if it's the 2nd or subsequent call.
Jim Meyering committedJun 11, 2010 Configuration menu - View commit details
-
Copy full SHA for 1a2b6d0 - Browse repository at this point
Copy the full SHA 1a2b6d0View commit details -
copy.c: ensure proper alignment of fiemap buffer
* src/copy.c (fiemap_copy): Ensure that our fiemap buffer is large enough and well-aligned. Replace "0LL" with equivalent "0" as 3rd argument to lseek.
Configuration menu - View commit details
-
Copy full SHA for f9daf7e - Browse repository at this point
Copy the full SHA f9daf7eView commit details -
fiemap.h: include <stdint.h>, not <linux/types.h>
* src/fiemap.h: Include stdint.h, not linux/types.h, now that this file uses only portable type names.
Jim Meyering committedJun 11, 2010 Configuration menu - View commit details
-
Copy full SHA for 20c1eee - Browse repository at this point
Copy the full SHA 20c1eeeView commit details -
tests: accommodate varying filefrag -v "flags" output
* tests/cp/sparse-fiemap: Accommodate values other than "eof" in the "flags" column of filefrag -v output
Jim Meyering committedJun 11, 2010 Configuration menu - View commit details
-
Copy full SHA for 484903d - Browse repository at this point
Copy the full SHA 484903dView commit details -
copy.c: add FIEMAP_FLAG_SYNC to fiemap ioctl
* src/copy.c (fiemap_copy): Force kernel to sync the source file before mapping.
Configuration menu - View commit details
-
Copy full SHA for 98b2a24 - Browse repository at this point
Copy the full SHA 98b2a24View commit details
Commits on Jun 13, 2010
-
build: distribute new file, fiemap.h
* src/Makefile.am (noinst_HEADERS): Add fiemap.h.
Jim Meyering committedJun 13, 2010 Configuration menu - View commit details
-
Copy full SHA for be55484 - Browse repository at this point
Copy the full SHA be55484View commit details -
build: distribute new test script, filefrag-extent-compare
* tests/Makefile.am (EXTRA_DIST): Add filefrag-extent-compare.
Jim Meyering committedJun 13, 2010 Configuration menu - View commit details
-
Copy full SHA for f25181d - Browse repository at this point
Copy the full SHA f25181dView commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff master...fiemap-copy