summaryrefslogtreecommitdiff
path: root/mtab.c
AgeCommit message (Collapse)AuthorFilesLines
2011-01-31mount.cifs: don't try to alter mtab if it's a symlinkJeff Layton1-0/+16
Some distros replace /etc/mtab with a symlink to /proc/mounts. In that situation, mount.cifs will hang for a while trying to lock the mtab. /bin/mount checks to see if the mtab is a symlink. If it is or if a stat() call on it fails, it doesn't try to to update the mtab. Have mount.cifs do the same. Signed-off-by: Jeff Layton <jlayton@samba.org>
2010-08-24mount.cifs: use monotonic time for timeoutsBjörn Jacke1-3/+20
this is especially important during the boot process, where the clock is often being set initially and clock jumps are more common.
2010-07-27mtab: add __attribute__((unused)) to unused variablesJeff Layton1-2/+2
...to silence -Wextra warnings. Signed-off-by: Jeff Layton <jlayton@samba.org>
2010-02-07Initial import of files from samba master branchJeff Layton1-0/+220
(commit 6e510b49c03be9caba4f587f3f6cec547841b0d7)