svn commit: r343483 - in head/sbin: newfs tunefs
Dmitry Morozovsky
marck at rinet.ru
Sat Jan 26 23:09:07 UTC 2019
Kirk,
On Sat, 26 Jan 2019, Kirk McKusick wrote:
> Author: mckusick
> Date: Sat Jan 26 22:27:12 2019
> New Revision: 343483
> URL: https://svnweb.freebsd.org/changeset/base/343483
>
> Log:
> Update tunefs and newfs error messages for the -L (volume label) option
> to note that underscores are valid.
while you're here -- most of FSes also allow dash as a valid symbol in FS name.
I stepped on it several times, and even did some local patch, but was too lazy
to sumbit it.
could you please look into it?
thanks!
>
> PR: 235182
> Reported by: Rodney W. Grimes (rgrimes@)
> Sponsored by: Netflix
>
> Modified:
> head/sbin/newfs/newfs.c
> head/sbin/tunefs/tunefs.c
>
> Modified: head/sbin/newfs/newfs.c
> ==============================================================================
> --- head/sbin/newfs/newfs.c Sat Jan 26 22:24:15 2019 (r343482)
> +++ head/sbin/newfs/newfs.c Sat Jan 26 22:27:12 2019 (r343483)
> @@ -155,7 +155,8 @@ main(int argc, char *argv[])
> while (isalnum(volumelabel[++i]) ||
> volumelabel[i] == '_');
> if (volumelabel[i] != '\0') {
> - errx(1, "bad volume label. Valid characters are alphanumerics.");
> + errx(1, "bad volume label. Valid characters "
> + "are alphanumerics and underscores.");
> }
> if (strlen(volumelabel) >= MAXVOLLEN) {
> errx(1, "bad volume label. Length is longer than %d.",
>
> Modified: head/sbin/tunefs/tunefs.c
> ==============================================================================
> --- head/sbin/tunefs/tunefs.c Sat Jan 26 22:24:15 2019 (r343482)
> +++ head/sbin/tunefs/tunefs.c Sat Jan 26 22:27:12 2019 (r343483)
> @@ -191,9 +191,8 @@ main(int argc, char *argv[])
> i = -1;
> while (isalnum(Lvalue[++i]) || Lvalue[i] == '_');
> if (Lvalue[i] != '\0') {
> - errx(10,
> - "bad %s. Valid characters are alphanumerics.",
> - name);
> + errx(10, "bad %s. Valid characters are "
> + "alphanumerics and underscores.", name);
> }
> if (strlen(Lvalue) >= MAXVOLLEN) {
> errx(10, "bad %s. Length is longer than %d.",
> _______________________________________________
> svn-src-all at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/svn-src-all
> To unsubscribe, send any mail to "svn-src-all-unsubscribe at freebsd.org"
>
--
Sincerely,
D.Marck [DM5020, MCK-RIPE, DM3-RIPN]
[ FreeBSD committer: marck at FreeBSD.org ]
------------------------------------------------------------------------
*** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck at rinet.ru ***
------------------------------------------------------------------------
More information about the svn-src-all
mailing list