meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
linux:fs:ext4 [2024/11/15 10:33] niziaklinux:fs:ext4 [2024/11/15 10:57] (current) niziak
Line 25: Line 25:
  
 <code bash> <code bash>
- 
 rmlint /BIG/POOL --progress --xattr -c sh:hardlink --size 1M rmlint /BIG/POOL --progress --xattr -c sh:hardlink --size 1M
 +</code>
  
-cp rmlint.json POOL.json +Tools doesn't touch filesystem. It generate ''rmlint.sh'' to make desired modification
-rmlint /BIG/POOL --progress --xattr --size 20M --replay POOL.json+Please review script, especially function ''cp_hardlink''
 +Function needs to hande errors a bit better - it first removes file without backup, and then if error occurs during hardlink there is no way back. 
 + 
 +<file diff rmlint.patch> 
 +1c1 
 +< #!/bin/sh 
 +--- 
 +> #!/bin/sh -eu 
 +192a193 
 +>             mv "$1" ~"$1".rmlint.$$ 
 +194a196 
 +>             rm ~"$1".rmlint.$$ 
 +</file>
  
-</code>