Whamcloud - gitweb
LU-17662 osd-zfs: Support for ZFS 2.2.3
[fs/lustre-release.git] / lustre / tests / llmountcleanup.sh
1 #!/bin/bash
2 # SPDX-License-Identifier: GPL-2.0
3
4 #
5 # This file is part of Lustre, http://www.lustre.org/
6 #
7 # lustre/tests/llmountcleanup.sh
8 #
9 # Destroy the lustre filesystem and client created by
10 # llmount.sh
11 #
12
13 usage() {
14         less -F <<EOF
15 Usage: ${0##*/}
16 Destroy the lustre filesystem and client created by llmount.sh
17         -h, --help          This help
18
19 EOF
20         exit
21 }
22
23 # Replace long option with corresponding short option
24 for arg in "$@"; do
25         shift
26         case "$arg" in
27                 --help) set -- "$@" '-h';;
28                 *) set -- "$@" "$arg";;
29         esac
30 done
31
32 while getopts "h" opt
33 do
34         case "$opt" in
35                 h|\?) usage;;
36         esac
37 done
38
39 LUSTRE=${LUSTRE:-$(dirname "$0")/..}
40 . "$LUSTRE/tests/test-framework.sh"
41 init_test_env "$@"
42
43 cleanupall -f