ARC: Cache arc_c value during arc_evict()
[zfs.git] / contrib / dracut / 90zfs / export-zfs.sh.in
blobcfe05947943639b613f91b6d267168c93851bad9
1 #!/bin/sh
3 _do_zpool_export() {
4 info "ZFS: Exporting ZFS storage pools..."
5 errs=$(zpool export -aF 2>&1)
6 ret=$?
7 echo "${errs}" | vwarn
8 if [ "${ret}" -ne 0 ]; then
9 info "ZFS: There was a problem exporting pools."
12 if [ -n "$1" ]; then
13 info "ZFS: pool list"
14 zpool list 2>&1 | vinfo
17 return "$ret"
20 if command -v zpool >/dev/null; then
21 _do_zpool_export "${1}"