]> git.sur5r.net Git - bacula/bacula/commit
Skip certain filesystem types on some platforms.
authorMarco van Wieringen <mvw@planets.elm.net>
Thu, 26 Jan 2012 22:59:23 +0000 (23:59 +0100)
committerMarco van Wieringen <mvw@planets.elm.net>
Thu, 26 Jan 2012 23:08:18 +0000 (00:08 +0100)
commit71b623b43a81b32e5f5d7c39b847398531c091e2
treee5bd22e5ee1dd8da7d2749e7e5b097676478c6dd
parentfa39559d4d9a8c58cd9e2811787935ea389e4014
Skip certain filesystem types on some platforms.

On Linux the actual rootfs gets mounted over an initial
rootfs. The mountcache on Linux is populated with the
content of /proc/mounts and as such it will contain 2
entries for the rootfs. So when the fstype function
is used to lookup the type of filesystem based on
the dev_t value it will always find the rootfs first.
But people expect to find either ext2, ext3 etc.
so we added a table with per OS (currently only Linux)
the filesystem which should NOT be loaded into the
internal lookup table.
bacula/src/lib/mntent_cache.c