Check-in [a778a4da2d]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Remove redundant check "if ${to} is dir", destroyfs already does it Submitted by: ak
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: a778a4da2da1961731a86fdfa1d94c3159537047
User & Date: bdrewery 2013-06-03 10:36:11
Context
2013-06-03
10:43
Switch MDMFS support to using swap-backed disk. Also enable TRIM. MDMFS is measurably slower than TMPFS, the only reason to use it as far as I can see is to be able to define a max limit and to support swapping. Suggested by: ak check-in: 054bd0244f user: bdrewery tags: trunk
10:36
Remove redundant check "if ${to} is dir", destroyfs already does it Submitted by: ak check-in: a778a4da2d user: bdrewery tags: trunk
10:34
Whitespace Submitted by: ak check-in: b9756632e0 user: bdrewery tags: trunk
Changes

Changes to src/share/poudriere/common.sh.

658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
	[ $# -lt 2 ] && eargs from to snap
	local from=$1
	local to=$2
	local snap=$3
	local name zfs_to
	local fs=$(zfs_getfs ${from})

	[ -d ${to} ] && destroyfs ${to} jail
	mkdir -p ${to}
	to=$(realpath ${to})
	[ ${TMPFS_ALL} -eq 1 ] && unset fs
	if [ -n "${fs}" ]; then
		name=${to##*/}

		if [ "${name}" = "ref" ]; then







|







658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
	[ $# -lt 2 ] && eargs from to snap
	local from=$1
	local to=$2
	local snap=$3
	local name zfs_to
	local fs=$(zfs_getfs ${from})

	destroyfs ${to} jail
	mkdir -p ${to}
	to=$(realpath ${to})
	[ ${TMPFS_ALL} -eq 1 ] && unset fs
	if [ -n "${fs}" ]; then
		name=${to##*/}

		if [ "${name}" = "ref" ]; then