Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/makefs leave the size alone and set the create_size...



details:   https://anonhg.NetBSD.org/src/rev/3bce24976148
branches:  trunk
changeset: 823174:3bce24976148
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Apr 14 15:40:35 2017 +0000

description:
leave the size alone and set the create_size to include the offset. It
does not matter anyway, but it makes more sense this way.

diffstat:

 usr.sbin/makefs/msdos.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (30 lines):

diff -r 9c0d73b2f4bf -r 3bce24976148 usr.sbin/makefs/msdos.c
--- a/usr.sbin/makefs/msdos.c   Fri Apr 14 15:39:29 2017 +0000
+++ b/usr.sbin/makefs/msdos.c   Fri Apr 14 15:40:35 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: msdos.c,v 1.19 2017/04/13 17:20:59 christos Exp $      */
+/*     $NetBSD: msdos.c,v 1.20 2017/04/14 15:40:35 christos Exp $      */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(__lint)
-__RCSID("$NetBSD: msdos.c,v 1.19 2017/04/13 17:20:59 christos Exp $");
+__RCSID("$NetBSD: msdos.c,v 1.20 2017/04/14 15:40:35 christos Exp $");
 #endif /* !__lint */
 
 #include <sys/param.h>
@@ -157,9 +157,9 @@
        assert(root != NULL);
        assert(fsopts != NULL);
 
-       fsopts->size = fsopts->offset + fsopts->maxsize;
+       fsopts->size = fsopts->maxsize;
        msdos_opt->options.create_size = MAX(msdos_opt->options.create_size,
-               fsopts->size);
+           fsopts->offset + fsopts->size);
        msdos_opt->options.offset = fsopts->offset;
        if (msdos_opt->options.bytes_per_sector == 0) {
                if (fsopts->sectorsize == -1)



Home | Main Index | Thread Index | Old Index