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

2012-06-01 Thread Josef Bacik
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: > > 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 /p

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

2012-05-31 Thread Miao Xie
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 guar

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

2012-05-31 Thread Josef Bacik
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 > informat

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

2012-05-31 Thread Miao Xie
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