Whamcloud - gitweb
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