Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/dump - update NAME_MAX to match the kernel.
details: https://anonhg.NetBSD.org/src/rev/87ef4d3b1dc9
branches: trunk
changeset: 341669:87ef4d3b1dc9
user: christos <christos%NetBSD.org@localhost>
date: Mon Nov 16 17:06:47 2015 +0000
description:
- update NAME_MAX to match the kernel.
- add a comment about where the constant is used.
diffstat:
sbin/dump/dump.h | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 95be0b4ff98c -r 87ef4d3b1dc9 sbin/dump/dump.h
--- a/sbin/dump/dump.h Mon Nov 16 15:01:22 2015 +0000
+++ b/sbin/dump/dump.h Mon Nov 16 17:06:47 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dump.h,v 1.53 2015/08/12 18:28:00 dholland Exp $ */
+/* $NetBSD: dump.h,v 1.54 2015/11/16 17:06:47 christos Exp $ */
/*-
* Copyright (c) 1980, 1993
@@ -267,7 +267,7 @@
struct statvfs *mntinfosearch(const char *key);
#ifndef NAME_MAX
-#define NAME_MAX 255
+#define NAME_MAX 511
#endif
/*
@@ -275,6 +275,7 @@
* a linked list, and then (eventually) arrayified.
*/
struct dumpdates {
+ /* see DUMP{IN,OUT}FMT in <protocols/dumprestore.h> */
char dd_name[NAME_MAX+3];
char dd_level;
time_t dd_ddate;
Home |
Main Index |
Thread Index |
Old Index