Commit 9d304963 authored by Nathan Scott's avatar Nathan Scott

[XFS] Fix length of mount argument path strings, off by one.

SGI Modid: xfs-linux:xfs-kern:167192a
parent 315e2d46
/* /*
* Copyright (c) 2000-2003 Silicon Graphics, Inc. All Rights Reserved. * Copyright (c) 2000-2004 Silicon Graphics, Inc. All Rights Reserved.
* *
* This program is free software; you can redistribute it and/or modify it * This program is free software; you can redistribute it and/or modify it
* under the terms of version 2 of the GNU General Public License as * under the terms of version 2 of the GNU General Public License as
...@@ -57,10 +57,10 @@ struct xfs_mount_args { ...@@ -57,10 +57,10 @@ struct xfs_mount_args {
int flags; /* flags -> see XFSMNT_... macros below */ int flags; /* flags -> see XFSMNT_... macros below */
int logbufs; /* Number of log buffers, -1 to default */ int logbufs; /* Number of log buffers, -1 to default */
int logbufsize; /* Size of log buffers, -1 to default */ int logbufsize; /* Size of log buffers, -1 to default */
char fsname[MAXNAMELEN]; /* data device name */ char fsname[MAXNAMELEN+1]; /* data device name */
char rtname[MAXNAMELEN]; /* realtime device filename */ char rtname[MAXNAMELEN+1]; /* realtime device filename */
char logname[MAXNAMELEN]; /* journal device filename */ char logname[MAXNAMELEN+1]; /* journal device filename */
char mtpt[MAXNAMELEN]; /* filesystem mount point */ char mtpt[MAXNAMELEN+1]; /* filesystem mount point */
int sunit; /* stripe unit (BBs) */ int sunit; /* stripe unit (BBs) */
int swidth; /* stripe width (BBs), multiple of sunit */ int swidth; /* stripe width (BBs), multiple of sunit */
uchar_t iosizelog; /* log2 of the preferred I/O size */ uchar_t iosizelog; /* log2 of the preferred I/O size */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment