Skip to content

Commit

Permalink
bin/how_frag: script to find fragmented files
Browse files Browse the repository at this point in the history
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
  • Loading branch information
Sergei Trofimovich committed Oct 27, 2011
1 parent 48e1ef8 commit 4d14f41
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/how_frag
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

find "$1" -type f -exec /usr/sbin/filefrag \{} + | grep -v ': 1 extent found' | grep -v ': 0 extents found'

0 comments on commit 4d14f41

Please sign in to comment.