From owner-freebsd-amd64@FreeBSD.ORG Wed Oct 21 01:40:02 2009 Return-Path: Delivered-To: freebsd-amd64@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C17F1106566B for ; Wed, 21 Oct 2009 01:40:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 9F2378FC16 for ; Wed, 21 Oct 2009 01:40:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n9L1e27g023744 for ; Wed, 21 Oct 2009 01:40:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n9L1e2C5023743; Wed, 21 Oct 2009 01:40:02 GMT (envelope-from gnats) Resent-Date: Wed, 21 Oct 2009 01:40:02 GMT Resent-Message-Id: <200910210140.n9L1e2C5023743@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-amd64@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Carl Chave Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6A6F2106568D for ; Wed, 21 Oct 2009 01:34:56 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 598008FC16 for ; Wed, 21 Oct 2009 01:34:56 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n9L1Yu48034219 for ; Wed, 21 Oct 2009 01:34:56 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n9L1Yu2m034218; Wed, 21 Oct 2009 01:34:56 GMT (envelope-from nobody) Message-Id: <200910210134.n9L1Yu2m034218@www.freebsd.org> Date: Wed, 21 Oct 2009 01:34:56 GMT From: Carl Chave To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 X-Mailman-Approved-At: Wed, 21 Oct 2009 02:54:24 +0000 Cc: Subject: amd64/139806: Write attempt to file in ZFS snapshot dir causes panic X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Oct 2009 01:40:02 -0000 >Number: 139806 >Category: amd64 >Synopsis: Write attempt to file in ZFS snapshot dir causes panic >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-amd64 >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Oct 21 01:40:02 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Carl Chave >Release: 8.0-RC1-amd64-dvd1.iso >Organization: >Environment: 8.0-RC1-amd64-dvd1.iso booted to Fixit environment in vmware. >Description: Attempting to modify a file in a zfs snapshot directory causes kernel panic with the following message: panic: dirtying snapshot! Maybe related to this PR: http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/138764 >How-To-Repeat: 1. load zfs from bootloader prompt and then boot. 2. enter fixit environment. 3. import zpool (in this case a 2 disk vmware mirror named sodpool) 4. cd to previously created snapshot at sodpool/test/myfs/.zfs/snapshot/one 5. attempting to create a new file here results in: Fixit# echo hello > hello.txt cannot create hello.txt: Read-only file system 6. That seems like the desired response. Next, attempt to modify a file that already exists in the snapshot: Fixit# echo hello >> test.txt panic: dirtying snapshot! >Fix: Unknown >Release-Note: >Audit-Trail: >Unformatted: