summary refs log tree commit diff
path: root/Completion/Solaris/Command/_dumpadm
blob: 37491946ce09522919e00a68a8bb9231d89bfdae (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#compdef dumpadm

_dumpadm() {
	local -a content

	content=(
		"kernel"\:"Kernel memory pages only"
		"all"\:"All memory pages"
		"curproc"\:"Kernel memory pages plus curproc pages"
	)

	_arguments -s \
		'-n[Dont run savecore on reboot]' \
		'-u[Update dump configuration from dumpadm.conf]' \
		'-y[Run savecore on reboot]' \
		'-c[Set dump content]:dump content:(($content))' \
		'-d[Set dump device]:block devices:_files -g "*(-%b)"' \
		'-m[Set minfree size ]:' \
		'-s[Set the savecore directory]:directory:_files -/' \
		'-r[Alternate root directory]:directory:_files -/'
}

_dumpadm "$@"