Red Hat Bugzilla – Bug 674101
mount.cifs fails to modify mtab
Last modified: 2014-06-18 03:40:58 EDT
Trying to do a cifs mount on recent rawhide and I get a long delay and then this:
# mount /mnt/salusa
cannot lock mtab
...not too surprising now that /etc/mtab is a symlink to /proc/mounts.
I suppose that I need to try to detect when /etc/mtab is a symlink to /proc/mounts and just skip updating the mtab in that case. Is there a suggested way to do this? What about userspace options -- do I need to do something under /dev/.mount? Any hints or thoughts on the right approach for addressing this would be helpful...
After talking with Karel yesterday, I proposed this patch on the linux-cifs mailing list:
...assuming that no-one complains it should go in in a few days. I'll also update the rawhide mount.cifs with the same patch.
Patch committed in cifs-utils-4.8.1-2. Should show up in rawhide in the next day or so. I'll commit the same patch upstream as well in the next day or two providing no one objects.