Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-10]: src/sbin/nvmectl Pull up following revision(s) (requested by...
details: https://anonhg.NetBSD.org/src/rev/84bb8eddd6ed
branches: netbsd-10
changeset: 374470:84bb8eddd6ed
user: martin <martin%NetBSD.org@localhost>
date: Tue Apr 25 15:25:36 2023 +0000
description:
Pull up following revision(s) (requested by simonb in ticket #145):
sbin/nvmectl/devlist.c: revision 1.6
In "devlist" mode, exit with a 0 return code if any nvme devices are
found, rather than exiting with 1 return code always.
diffstat:
sbin/nvmectl/devlist.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diffs (31 lines):
diff -r fff7e83831ca -r 84bb8eddd6ed sbin/nvmectl/devlist.c
--- a/sbin/nvmectl/devlist.c Thu Apr 20 14:20:02 2023 +0000
+++ b/sbin/nvmectl/devlist.c Tue Apr 25 15:25:36 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: devlist.c,v 1.5 2018/04/18 10:11:44 nonaka Exp $ */
+/* $NetBSD: devlist.c,v 1.5.12.1 2023/04/25 15:25:36 martin Exp $ */
/*-
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
@@ -30,7 +30,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: devlist.c,v 1.5 2018/04/18 10:11:44 nonaka Exp $");
+__RCSID("$NetBSD: devlist.c,v 1.5.12.1 2023/04/25 15:25:36 martin Exp $");
#if 0
__FBSDID("$FreeBSD: head/sbin/nvmecontrol/devlist.c 329824 2018-02-22 13:32:31Z wma $");
#endif
@@ -118,8 +118,10 @@ devlist(int argc, char *argv[])
close(fd);
}
- if (found == 0)
+ if (found == 0) {
printf("No NVMe controllers found.\n");
+ exit(1);
+ }
- exit(1);
+ exit(0);
}
Home |
Main Index |
Thread Index |
Old Index