Re: [PATCH] mount: mtab created multiple times with -a option

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 Hi Jonas,

On Tue, Sep 30, 2008 at 10:47:08PM +0200, Jonas Kramer wrote:
> Since util-linux-ng 2.14.1, the following problem occurs with mount.

 I think the problem is a little older.

> When /etc/mtab does not exist and mount is called with -a, for every
> mount point that is mounted a root-fs record is added to mtab. This is
> because get_mtab_info() sets the flag mtab_does_not_exist to 1 when it
> doesn't find /etc/mtab. However, if it actually finds /etc/mtab, the
> variable is not reset to 0. So on every subsequent call to
> get_mtab_info() (as it is the case when mounting several mount points
> with the -a option), mount will think that /etc/mtab does not exist,
> even if it was created in the meantime by mount itself.

 You are right. Fixed. Thanks for your report.

    Karel

-- 
 Karel Zak  <kzak@xxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux