From: Li Zefan <lizf@cn.fujitsu.com>
To: Andreas Philipp <philipp.andreas@gmail.com>
Cc: linux-btrfs <linux-btrfs@vger.kernel.org>
Subject: Re: read-only subvolumes?
Date: Thu, 24 Mar 2011 17:31:17 +0800 [thread overview]
Message-ID: <4D8B0F65.6080905@cn.fujitsu.com> (raw)
In-Reply-To: <4D89CBF4.6040600@gmail.com>
> IMHO, this is related to how the debug options of the kernel are
> configured. Attached you find two config files, both for kernel
> version 2.6.38, with the one named 2.6.38-debug everything works and
> with the other one newly created subvolumes are read only.
>
I've figured out what's wrong.
The root cause is the flags field of the root item for a new subvol
is never _initialized_!! so the on disk root_item->flags can be of
arbitrary value..
(so is root_item->byte_limit btw.)
I don't have a perfect solution at the moment, but I think a workaround
is to use a flag in root_item->inode_item->flags to indicate if
root->flags is initialized.
prev parent reply other threads:[~2011-03-24 9:31 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-23 8:21 read-only subvolumes? Andreas Philipp
2011-03-23 9:01 ` Fajar A. Nugraha
2011-03-23 9:25 ` Li Zefan
2011-03-23 10:07 ` Andreas Philipp
2011-03-23 10:14 ` Andreas Philipp
[not found] ` <4D89CBF4.6040600@gmail.com>
2011-03-24 6:30 ` Li Zefan
2011-03-24 9:31 ` Li Zefan [this message]
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=4D8B0F65.6080905@cn.fujitsu.com \
--to=lizf@cn.fujitsu.com \
--cc=linux-btrfs@vger.kernel.org \
--cc=philipp.andreas@gmail.com \
/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.