From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Adam C. Emerson" Subject: Attempt to create a new file in a snapshot crashes the MDS Date: Fri, 09 Jul 2010 15:22:14 -0400 Message-ID: <87wrt4fok9.wl%aemerson@linuxbox.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from aa.linuxbox.com ([134.215.213.37]:3056 "EHLO aa.linuxbox.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751957Ab0GIT0n (ORCPT ); Fri, 9 Jul 2010 15:26:43 -0400 Received: from thunderbeast.private.linuxbox.com (thunderbeast.private.linuxbox.com [10.1.1.55]) by aa.linuxbox.com (8.13.1/8.13.1/SuSE Linux 0.7) with ESMTP id o69JLcM8018716 for ; Fri, 9 Jul 2010 15:21:38 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by thunderbeast.private.linuxbox.com (Postfix) with ESMTP id 18B983FC839A for ; Fri, 9 Jul 2010 15:21:38 -0400 (EDT) Received: from thunderbeast.private.linuxbox.com ([127.0.0.1]) by localhost (thunderbeast.private.linuxbox.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id x2DHl4CO3MXZ for ; Fri, 9 Jul 2010 15:21:37 -0400 (EDT) Received: from seasalt.private.linuxbox.com (seasalt.private.linuxbox.com [10.1.1.119]) by thunderbeast.private.linuxbox.com (Postfix) with ESMTP id 9A5063FC8399 for ; Fri, 9 Jul 2010 15:21:37 -0400 (EDT) Sender: ceph-devel-owner@vger.kernel.org List-ID: To: Ceph-devel I know it's not supported, but I tried it out to see what kind of error behaviour I would get. The following were preformed on a simple ceph filesystem (one monitor, one mds, one osd all on the same machine) running current unstable with the filesystem mounted via cfuse: /mnt# mkdir foo /mnt# cd foo /mnt/foo# cat > something These are the contents of the file. /mnt/foo# cd .snap /mnt/foo/.snap# mkdir old /mnt/foo/.snap# cd .. /mnt/foo# cat > something These are different contents of the file. /mnt/foo# cd .snap /mnt/foo/.snap# ls old/ /mnt/foo/.snap# cd old root@seasalt:/mnt/foo/.snap/old# ls something /mnt/foo/.snap/old# cat something These are the contents of the file. /mnt/foo/.snap/old# cat > something zsh: invalid argument: something /mnt/foo/.snap/old# cat > somthingelse These are divergent contents. This last command hangs, and in the MDS log I find: mds/CDir.cc: In function 'CDentry* CDir::add_null_dentry(const std::string&, snapid_t, snapid_t)': mds/CDir.cc:225: FAILED assert(lookup_exact_snap(dname, last) == 0) Thank you very much.