system/zfs-on-linux: Updated for version 0.6.5.1.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Kevin Paulus 2015-09-20 09:47:32 +07:00 committed by Willy Sudiarto Raharjo
parent e5c3ca2812
commit 98d5bc70a2
3 changed files with 66 additions and 66 deletions

View file

@ -28,7 +28,7 @@
LOCKFILE=/var/lock/zfs/zfs
ZFS="/sbin/zfs"
ZPOOL="/sbin/zpool"
ZPOOL_CACHE="/etc/zfs/zpool.cache"
UDEVD="/dev/disk/by-id/"
# Source zfs configuration.
[ -r '/etc/default/zfs' ] && . /etc/default/zfs
@ -38,89 +38,89 @@ ZPOOL_CACHE="/etc/zfs/zpool.cache"
start()
{
[ -f "$LOCKFILE" ] && return 3
[ -f "$LOCKFILE" ] && return 3
# Requires selinux policy which has not been written.
if [ -r "/selinux/enforce" ] &&
[ "$(cat /selinux/enforce)" = "1" ]; then
# Requires selinux policy which has not been written.
if [ -r "/selinux/enforce" ] &&
[ "$(cat /selinux/enforce)" = "1" ]; then
echo "SELinux ZFS policy required"
return 4
fi
echo "SELinux ZFS policy required"
return 4
fi
# Delay until all required block devices are present.
udevadm settle
# Delay until all required block devices are present.
udevadm settle
# Load the zfs module stack
/sbin/modprobe zfs
# Load the zfs module stack
/sbin/modprobe zfs
# Ensure / exists in /etc/mtab, if not update mtab accordingly.
# This should be handled by rc.sysinit but lets be paranoid.
awk '$2 == "/" { exit 1 }' /etc/mtab
RETVAL=$?
if [ "$RETVAL" -eq 0 ]; then
/bin/mount -f /
fi
# Ensure / exists in /etc/mtab, if not update mtab accordingly.
# This should be handled by rc.sysinit but lets be paranoid.
awk '$2 == "/" { exit 1 }' /etc/mtab
RETVAL=$?
if [ "$RETVAL" -eq 0 ]; then
/bin/mount -f /
fi
# Import all pools described by the cache file, and then mount
# all filesystem based on their properties.
if [ -f "$ZPOOL_CACHE" ] ; then
echo "Importing ZFS pools"
"$ZPOOL" import -fc "$ZPOOL_CACHE" -aN 2>/dev/null
# Import all pools, and then mount
# all filesystem based on their properties.
echo "Importing ZFS pools"
"$ZPOOL" import -d "$UDEVD" -f -aN 2>/dev/null
echo "Mounting ZFS filesystems"
"$ZFS" mount -a
echo "Mounting ZFS filesystems"
"$ZFS" mount -a
echo "Exporting ZFS filesystems"
"$ZFS" share -a
fi
echo "Exporting ZFS filesystems"
"$ZFS" share -a
touch "$LOCKFILE"
touch "$LOCKFILE"
}
stop()
{
[ ! -f "$LOCKFILE" ] && return 3
[ ! -f "$LOCKFILE" ] && return 3
echo "Unmounting ZFS filesystems"
"$ZFS" umount -a
echo "Unmounting ZFS filesystems"
"$ZFS" umount -a
rm -f "$LOCKFILE"
rm -f "$LOCKFILE"
}
status()
{
[ ! -f "$LOCKFILE" ] && return 3
[ ! -f "$LOCKFILE" ] && return 3
"$ZPOOL" status && echo "" && "$ZPOOL" list
"$ZPOOL" status && echo "" && "$ZPOOL" list
}
case "$1" in
start)
start
RETVAL=$?
;;
stop)
stop
RETVAL=$?
;;
status)
status
RETVAL=$?
;;
restart)
stop
start
;;
condrestart)
if [ -f "$LOCKFILE" ]; then
stop
start
fi
;;
*)
echo $"Usage: $0 {start|stop|status|restart|condrestart}"
;;
start)
start
RETVAL=$?
;;
stop)
stop
RETVAL=$?
;;
status)
status
RETVAL=$?
;;
restart)
stop
start
;;
condrestart)
if [ -f "$LOCKFILE" ]; then
stop
start
fi
;;
*)
echo $"Usage: $0 {start|stop|status|restart|condrestart}"
;;
esac
exit $RETVAL
# vim: set ts=4 sts=4 sw=4 expandtab textwidth=78:

View file

@ -2,8 +2,8 @@
# Slackware build script for zfs-on-linux
# Copyright 2013-2014 Petr Hejl - Czech Republic
# Copyright 2015 Kevin Paulus <goarilla@gmail.com>, Belgium
# Copyright 2013-2014 Petr Hejl - Czech Republic
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -27,7 +27,7 @@
PRGNAM=zfs-on-linux
SRCNAM=zfs
VERSION=${VERSION:-0.6.5}
VERSION=${VERSION:-0.6.5.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}

View file

@ -1,8 +1,8 @@
PRGNAM="zfs-on-linux"
VERSION="0.6.5"
VERSION="0.6.5.1"
HOMEPAGE="http://zfsonlinux.org"
DOWNLOAD="http://archive.zfsonlinux.org/downloads/zfsonlinux/zfs/zfs-0.6.5.tar.gz"
MD5SUM="76a3675a56acce7c9fd36578173304e4"
DOWNLOAD="http://archive.zfsonlinux.org/downloads/zfsonlinux/zfs/zfs-0.6.5.1.tar.gz"
MD5SUM="0421551f728c1fd4239bdd9932ba2c52"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="spl-solaris"