Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-12361

cp --sparse doesn't work correctly in

    XMLWordPrintable

Details

    • 3
    • 9223372036854775807

    Description

      When running copy a sparse file, it caused file different:

      + rm -f k
      + dd bs=1k seek=128 of=k
      0+0 records in
      0+0 records out
      0 bytes (0 B) copied, 0.000324957 s, 0.0 kB/s
      + ls -l k
      -rw-r--r-- 1 root root 131072 May 30 17:17 k
      + du -sb k
      131072 k
      + printf y
      + ls -l k
      -rw-r--r-- 1 root root 131073 May 30 17:17 k
      + du -sb k
      131073 k
      + cp --sparse=always k k2
      + ls -l k2
      -rw-r--r-- 1 ddn01 ddn 131073 May 30 17:17 k2
      + du -sb k2
      131073 k2
      + echo 0
      0
      + cmp k k2
      k k2 differ: char 131073, line 1
      + echo 1
      1
      + diff k k2
      Binary files k and k2 differ
      + echo 2
      2
      

      Attachments

        Activity

          People

            wshilong Wang Shilong (Inactive)
            wshilong Wang Shilong (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: