From 4d0f7c6fcd50ba93d4e45ac4d525f5041276b1f6 Mon Sep 17 00:00:00 2001 From: pooka Date: Sun, 11 Jan 2009 12:33:50 +0000 Subject: [PATCH] Warn that autoselecting nfs based on : or @ in the device path will be removed in a future release. --- sbin/mount/mount.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/sbin/mount/mount.c b/sbin/mount/mount.c index 5dcf62b9cc5c..d72e45e37fad 100644 --- a/sbin/mount/mount.c +++ b/sbin/mount/mount.c @@ -1,4 +1,4 @@ -/* $NetBSD: mount.c,v 1.86 2008/08/05 20:57:45 pooka Exp $ */ +/* $NetBSD: mount.c,v 1.87 2009/01/11 12:33:50 pooka Exp $ */ /* * Copyright (c) 1980, 1989, 1993, 1994 @@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1989, 1993, 1994\ #if 0 static char sccsid[] = "@(#)mount.c 8.25 (Berkeley) 5/8/95"; #else -__RCSID("$NetBSD: mount.c,v 1.86 2008/08/05 20:57:45 pooka Exp $"); +__RCSID("$NetBSD: mount.c,v 1.87 2009/01/11 12:33:50 pooka Exp $"); #endif #endif /* not lint */ @@ -280,9 +280,14 @@ main(int argc, char *argv[]) * specified ala Sun. */ if (vfslist == NULL) { - if (strpbrk(argv[0], ":@") != NULL) + if (strpbrk(argv[0], ":@") != NULL) { + fprintf(stderr, "WARNING: autoselecting nfs " + "based on : or @ in the device name is " + "deprecated!\n" + "WARNING: This behaviour will be removed " + "in a future release\n"); vfstype = "nfs"; - else { + } else { vfstype = getfslab(argv[0]); if (vfstype == NULL) vfstype = ffs_fstype;