summary refs log tree commit diff
path: root/Completion/Solaris/Command/_dumpadm
blob: 02c63f6a76cfaf8db903a4ffb7e305cf1a0c394a (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 "$@"