LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   [Bug] New "mount" does not recognize loop mounts (https://www.linuxquestions.org/questions/slackware-14/%5Bbug%5D-new-mount-does-not-recognize-loop-mounts-4175439319/)

guanx 11-29-2012 09:05 AM

[Bug] New "mount" does not recognize loop mounts
 
When called with "-a" the new mount command always mounts the loop mounts in /etc/fstab and does not check if they are already mounted. Because "mount -a" was called twice during init, any loop mounts in /etc/fstab are then mounted twice on startup.

This problem will be solved in the future because it is on util-linux'es todo list (see function mnt_table_is_fs_mounted in "util-linux/libmount/src/tab.c"). But the deprecated mount command already has this check and I was using this feature for years.

So shall we temporarily switch back to the deprecated mount command, or just write workarounds in the init scripts?

wildwizard 11-29-2012 01:19 PM

I don't see the problem, you did read mount.c didn't you?

guanx 11-29-2012 03:23 PM

Yes and now I find that this bug is filesystem specific. Will dig further tomorrow.


All times are GMT -5. The time now is 12:58 PM.