• Home
  • Raw
  • Download

Lines Matching +full:- +full:- +full:error +full:- +full:exitcode

19 #  Inc.,  51 Franklin St, Fifth Floor, Boston, MA  02110-1301, USA.
34 test -f "${conffile}" && . "${conffile}"
40 echo " -n: Show what commands e2scrub_all would execute."
41 echo " -r: Remove e2scrub snapshots."
42 echo " -A: Scrub all ext[234] filesystems even if not mounted."
43 echo " -V: Print version information and exit."
50 exitcode() {
54 # init script action error guidelines, which is to say that we
55 # compress all errors to 1 ("generic or unspecified error", LSB 5.0
59 if [ -n "${SERVICE_MODE}" -a "${ret}" -ne 0 ]; then
60 test "${ret}" -ne 0 && ret=1
69 "r") scrub_args="${scrub_args} -r"; reap=1;;
71 "V") print_version; exitcode 0;;
72 *) print_help; exitcode 2;;
75 shift "$((OPTIND - 1))"
78 if [ -n "${SERVICE_MODE}" -a "${periodic_e2scrub}" -ne 1 ]; then
80 if [ "${reap}" -eq 0 ]; then
81 exitcode 0
86 if ! readlink -q -s -e /dev/mapper/*.e2scrub* > /dev/null; then
87 exitcode 0
92 exec 3<&-
99 test -n "${SERVICE_MODE}" && exitcode 0
100 echo "e2scrub_all: can't find mapfile --- is bash 4.xx installed?"
101 exitcode 1
105 test -n "${SERVICE_MODE}" && exitcode 0
106 echo "e2scrub_all: can't find lsblk --- is util-linux installed?"
107 exitcode 1
111 test -n "${SERVICE_MODE}" && exitcode 0
112 echo "e2scrub_all: can't find lvcreate --- is lvm2 installed?"
113 exitcode 1
118 …local devices=$(lvs -o lv_path --noheadings -S "lv_active=active,lv_role=public,lv_role!=snapshot,…
120 if [ -z "$devices" ]; then
123 lsblk -o NAME,MOUNTPOINT,FSTYPE,TYPE -P -n -p $devices | \
128 if [ "${scrub_all}" -eq 1 ] || [ -n "${MOUNTPOINT}" ]; then
129 echo ${MOUNTPOINT:-${NAME}}
136 lvs -o lv_path -S lv_role=snapshot -S lv_name=~\(e2scrub$\) \
137 --noheadings | sed -e 's/.e2scrub$//'
142 if [ "${reap}" -eq 1 ]; then
156 # do /not/ drop the initial slash, so we have to special-case that here.
161 echo "-$(systemd-escape --path "${path}")"
163 echo "-"
168 mapfile -t targets < <(ls_targets)
172 if [ "${reap}" -ne 1 ] && type systemctl > /dev/null 2>&1; then
176 if [ "${res}" -eq 0 ] || [ "${res}" -eq 1 ]; then
185 exitcode 0