All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Adam C. Emerson" <aemerson@linuxbox.com>
To: Ceph-devel <ceph-devel@vger.kernel.org>
Subject: Attempt to create a new file in a snapshot crashes the MDS
Date: Fri, 09 Jul 2010 15:22:14 -0400	[thread overview]
Message-ID: <87wrt4fok9.wl%aemerson@linuxbox.com> (raw)

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.

             reply	other threads:[~2010-07-09 19:26 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-09 19:22 Adam C. Emerson [this message]
2010-07-09 19:38 ` Attempt to create a new file in a snapshot crashes the MDS Wido den Hollander
2010-07-09 19:43   ` Sage Weil

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wrt4fok9.wl%aemerson@linuxbox.com \
    --to=aemerson@linuxbox.com \
    --cc=ceph-devel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.