summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authordillon <dillon@FreeBSD.org>1999-10-02 19:42:46 +0000
committerdillon <dillon@FreeBSD.org>1999-10-02 19:42:46 +0000
commitbc8fdc1ce7adeb3b6bf708bbc80027a48b93a8ca (patch)
tree4cc31c42e1163cb10d9fc8b7fcf717e8fd6ad560 /sbin
parent2e11ef172bf42336aba190723ff7f63246b23098 (diff)
downloadFreeBSD-src-bc8fdc1ce7adeb3b6bf708bbc80027a48b93a8ca.zip
FreeBSD-src-bc8fdc1ce7adeb3b6bf708bbc80027a48b93a8ca.tar.gz
Print a warning that includes the mount source when the foreground
mount fails prior to going into the background when a background NFS mount is requested. PR: misc/12376
Diffstat (limited to 'sbin')
-rw-r--r--sbin/mount_nfs/mount_nfs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sbin/mount_nfs/mount_nfs.c b/sbin/mount_nfs/mount_nfs.c
index c382deb..c0f074d 100644
--- a/sbin/mount_nfs/mount_nfs.c
+++ b/sbin/mount_nfs/mount_nfs.c
@@ -815,6 +815,7 @@ tryagain:
}
if (--retrycnt > 0) {
if (opflags & BGRND) {
+ warnx("Cannot immediately mount %s:%s, backgrounding", hostp, spec);
opflags &= ~BGRND;
if ((i = fork())) {
if (i == -1)
OpenPOWER on IntegriCloud