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
This commit is contained in:
parent
075ff1d959
commit
fa9f8da4d2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=51873
@ -815,6 +815,7 @@ getnfsargs(spec, nfsargsp)
|
|||||||
}
|
}
|
||||||
if (--retrycnt > 0) {
|
if (--retrycnt > 0) {
|
||||||
if (opflags & BGRND) {
|
if (opflags & BGRND) {
|
||||||
|
warnx("Cannot immediately mount %s:%s, backgrounding", hostp, spec);
|
||||||
opflags &= ~BGRND;
|
opflags &= ~BGRND;
|
||||||
if ((i = fork())) {
|
if ((i = fork())) {
|
||||||
if (i == -1)
|
if (i == -1)
|
||||||
|
Loading…
Reference in New Issue
Block a user