Permalink
Browse files

bin/how_frag: script to find fragmented files

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
  • Loading branch information...
1 parent 48e1ef8 commit 4d14f4185e5679e207a643a50c20358d326aa599 @trofi committed Oct 27, 2011
Showing with 3 additions and 0 deletions.
  1. +3 −0 bin/how_frag
View
@@ -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.