Thread (4 messages) 4 messages, 2 authors, 2012-06-01

Re: [PATCH] Btrfs-progs: Update mtab if necessary when device was deleted in btrfs

From: Josef Bacik <hidden>
Date: 2012-06-01 12:46:53

On Fri, Jun 01, 2012 at 09:41:46AM +0800, Miao Xie wrote:
On Thu, 31 May 2012 10:31:48 -0400, Josef Bacik wrote:
quoted
On Thu, May 31, 2012 at 06:28:31PM +0800, Miao Xie wrote:
quoted
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?
It didn't but I think I screwed something up so ignore me.  Thanks,

Josef
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help