From: Miao Xie <miaox@cn.fujitsu.com>
To: Josef Bacik <josef@redhat.com>
Cc: Linux Btrfs <linux-btrfs@vger.kernel.org>
Subject: Re: [PATCH] Btrfs-progs: Update mtab if necessary when device was deleted in btrfs
Date: Fri, 01 Jun 2012 09:41:46 +0800 [thread overview]
Message-ID: <4FC81DDA.70004@cn.fujitsu.com> (raw)
In-Reply-To: <20120531143148.GA2080@localhost.localdomain>
On Thu, 31 May 2012 10:31:48 -0400, Josef Bacik wrote:
> On Thu, May 31, 2012 at 06:28:31PM +0800, Miao Xie wrote:
>> Now if we remove the device that is specified when mounting, btrfs will update
>> the mount information in /proc, such as the information in /proc/mounts. So
>> in order to guarantee the consistency between /etc/mtab and the mount
>> information in /proc, we must update /etc/mtab. This patch does it.
>>
>> This patch need libmount and libmount-devel(version >= 2.19) packages to
>> compile.
>>
>
> Does this work well with say Fedora where /etc/mtab is just a symlink to
> /proc/mounts? Thanks,
Yes, if /etc/mtab is not a regular file, we will skip the update. And I have
do some test for it and all of them passed.
This patch can not work well on your machine?
Thanks
Miao
next prev parent reply other threads:[~2012-06-01 1:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-31 10:28 [PATCH] Btrfs-progs: Update mtab if necessary when device was deleted in btrfs Miao Xie
2012-05-31 14:31 ` Josef Bacik
2012-06-01 1:41 ` Miao Xie [this message]
2012-06-01 12:46 ` Josef Bacik
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=4FC81DDA.70004@cn.fujitsu.com \
--to=miaox@cn.fujitsu.com \
--cc=josef@redhat.com \
--cc=linux-btrfs@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).