Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: coreutils/coreutils
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: coreutils/coreutils
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: fiemap-copy
Choose a head ref
  • 15 commits
  • 7 files changed
  • 3 contributors

Commits on Jun 11, 2010

  1. 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.
    pibroch authored and Jim Meyering committed Jun 11, 2010
    Configuration menu
    Copy the full SHA
    1ba1e9a View commit details
    Browse the repository at this point in the history
  2. 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.
    pibroch authored and Jim Meyering committed Jun 11, 2010
    Configuration menu
    Copy the full SHA
    e3dca50 View commit details
    Browse the repository at this point in the history
  3. tests: sparse-fiemap: factor out some set-up

    * tests/cp/sparse-fiemap: Cd into test directory sooner.
    Jim Meyering committed Jun 11, 2010
    Configuration menu
    Copy the full SHA
    9cc9dba View commit details
    Browse the repository at this point in the history
  4. 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 committed Jun 11, 2010
    Configuration menu
    Copy the full SHA
    578db28 View commit details
    Browse the repository at this point in the history
  5. 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 committed Jun 11, 2010
    Configuration menu
    Copy the full SHA
    e62e22b View commit details
    Browse the repository at this point in the history
  6. tests: test fiemap-enabled cp more thoroughly

    * tests/cp/sparse-fiemap: More tests.
    Jim Meyering committed Jun 11, 2010
    Configuration menu
    Copy the full SHA
    912e7d2 View commit details
    Browse the repository at this point in the history
  7. 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 committed Jun 11, 2010
    Configuration menu
    Copy the full SHA
    50975af View commit details
    Browse the repository at this point in the history
  8. 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 committed Jun 11, 2010
    Configuration menu
    Copy the full SHA
    e955826 View commit details
    Browse the repository at this point in the history
  9. 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 committed Jun 11, 2010
    Configuration menu
    Copy the full SHA
    1a2b6d0 View commit details
    Browse the repository at this point in the history
  10. 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.
    eggert authored and Jim Meyering committed Jun 11, 2010
    Configuration menu
    Copy the full SHA
    f9daf7e View commit details
    Browse the repository at this point in the history
  11. 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 committed Jun 11, 2010
    Configuration menu
    Copy the full SHA
    20c1eee View commit details
    Browse the repository at this point in the history
  12. 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 committed Jun 11, 2010
    Configuration menu
    Copy the full SHA
    484903d View commit details
    Browse the repository at this point in the history
  13. copy.c: add FIEMAP_FLAG_SYNC to fiemap ioctl

    * src/copy.c (fiemap_copy): Force kernel to sync the source
    file before mapping.
    pibroch authored and Jim Meyering committed Jun 11, 2010
    Configuration menu
    Copy the full SHA
    98b2a24 View commit details
    Browse the repository at this point in the history

Commits on Jun 13, 2010

  1. build: distribute new file, fiemap.h

    * src/Makefile.am (noinst_HEADERS): Add fiemap.h.
    Jim Meyering committed Jun 13, 2010
    Configuration menu
    Copy the full SHA
    be55484 View commit details
    Browse the repository at this point in the history
  2. build: distribute new test script, filefrag-extent-compare

    * tests/Makefile.am (EXTRA_DIST): Add filefrag-extent-compare.
    Jim Meyering committed Jun 13, 2010
    Configuration menu
    Copy the full SHA
    f25181d View commit details
    Browse the repository at this point in the history
Loading