Re: [RFC] mount: support /etc/fstab.d/* files?

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

 



On Wed, Apr 28, 2010 at 06:50:10PM -0700, Joey Korkames wrote:
> I'd like mount to support reading /etc/fstab.d/*. in addition to /etc/fstab.

 I'm working on libmount:
 http://git.kernel.org/?p=utils/util-linux-ng/kzak/libmount.git;a=summary

 I don't see a problem to support /etc/fstab.d in the library.

 I'd like to merge the library into util-linux-ng next week, and it
 should be released in 2.18 (-rc1 in May) together with a new command
 findmnt(8).

 The mount(8) command will be linked against this library in the next 
 release 2.19 (it's relative invasive change so I'd like to wait one
 release to make libmount more stable).

> The directory could be walked as default behavior:   `mount /mnt/foo` or 
> `mount -a`
>   - parse /etc/fstab for desired mountdev/point
>   - then parse /etc/fstab.d/* (nat-sorted)
> or as demanded by an optionflag:
>  `mount --fstab=/etc/fstab.d/myDB /mnt/myDB` or `mount -a --fstab=/etc/fstab.d/SCM`
>   -only parse /etc/fstab.d/myDB
>
> I see no need to keep fstab.d mounts out of /etc/mtab and breaking all of 
> the getmnt*() calls for such mounts.

 Our plan is to remove mtab from Linux at all. Some userspace specific
 mount options (user=, uhelper=, ...) will be stored in /var/run/libmount 
 (or so).

    Karel

-- 
 Karel Zak  <kzak@xxxxxxxxxx>
 http://karelzak.blogspot.com
--
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