Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Aug 2013 22:31:00 +0200 (CEST)
From:      Richard Kojedzinszky <krichy@cflinux.hu>
To:        freebsd-fs@freebsd.org
Subject:   zvol snapshot recursive rename hang
Message-ID:  <alpine.BSF.2.00.1308132228350.78352@pi.nmdps.net>

next in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
Dear ZFS devs,

I've attached a script, which on releng/9.2 causes a deadlock somewhere.

And what is strange to me that deadman does not cause a panic. It should, 
right?

Thanks in advance,
Kojedzinszky Richard
[-- Attachment #2 --]
#!/bin/bash

fs="vol0/data"

zfs destroy -r "$fs/vol"
zfs create -s -V 1G -b 128k "$fs/vol"

(while : ; do
	s=1
	echo "Creating snapshot"
	zfs snapshot -r "$fs@$s"
	for n in 2 3 4 5 ; do
		echo "Renaming snapshot $s -> $n"
		zfs rename -r "$fs@$s" "$fs@$n"
		s=$n
	done
	echo "Destroying snapshot"
	zfs destroy -r "$fs@$s"
done) &
(while : ; do
	dd if=/dev/urandom of=/dev/zvol/$fs/vol bs=1M count=1
done)

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1308132228350.78352>