Whamcloud - gitweb
EX-3389 lipe: add lipe_delete script
authorJian Yu <yujian@whamcloud.com>
Sun, 29 Aug 2021 07:36:25 +0000 (00:36 -0700)
committerJohn L. Hammond <jhammond@whamcloud.com>
Fri, 15 Oct 2021 22:27:01 +0000 (22:27 +0000)
commit5d52fded9b7ade9af0e43ee79b0b25ab1b779198
tree7fb4a7fb5799eccdf0423421e7f088fab373eea9
parentcbddf68dfc89e9b124026797f5fd4d590c200f0e
EX-3389 lipe: add lipe_delete script

Usage: lipe_delete [OPTION]... --client-mount=CLIENT_MOUNT -- DEVICE EXPRESSION
Scan DEVICE for files matching EXPRESSION and delete the matching files.

Mandatory arguments to long options are mandatory for short options too.
  -c CLIENT_MOUNT, --client-mount=CLIENT_MOUNT Lustre client mount point
  -d, --debug                                  display debug information
  --dry-run                                    only display what would be deleted
  -t THREAD_COUNT, --threads=THREAD_COUNT      count of the scanning thread
  --no-convert                                 do not convert the EXPRESSION
  -h, --help                                   display this help message and exit
  -v, --version                                display version information and exit

For expression details see lipe_find(1).

For example:

$ lipe_delete --dry-run -c /mnt/lustre -- /dev/mapper/mds1_flakey -fid '*'
lfs rmfid /mnt/lustre 0x200000408:0x14245:0x0 0x200000408:0x14246:0x0

Test-Parameters: trivial

Change-Id: I9ed5247992c807e81ac4445986a07ac0d2196de3
Signed-off-by: Jian Yu <yujian@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/44421
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: John L. Hammond <jhammond@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/44971
lipe/Makefile.am
lipe/lipe.spec.in
lipe/lipe_delete [new file with mode: 0755]