Source-Changes-HG archive

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

[src/trunk]: src/tests/fs/common Use the new extension to newfs_udf to genera...



details:   https://anonhg.NetBSD.org/src/rev/b6789a822ea5
branches:  trunk
changeset: 787771:b6789a822ea5
user:      reinoud <reinoud%NetBSD.org@localhost>
date:      Tue Jul 02 15:00:55 2013 +0000

description:
Use the new extension to newfs_udf to generate a decent image for rump to work
on instead of an FFS(!) version.

diffstat:

 tests/fs/common/fstest_udf.c |  9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diffs (25 lines):

diff -r ae7d0792134f -r b6789a822ea5 tests/fs/common/fstest_udf.c
--- a/tests/fs/common/fstest_udf.c      Tue Jul 02 14:59:01 2013 +0000
+++ b/tests/fs/common/fstest_udf.c      Tue Jul 02 15:00:55 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fstest_udf.c,v 1.3 2013/06/30 15:42:43 martin Exp $    */
+/*     $NetBSD: fstest_udf.c,v 1.4 2013/07/02 15:00:55 reinoud Exp $   */
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -62,12 +62,11 @@
        struct udftestargs *args;
        struct sigaction act, oact;
 
-       size /= 512;
        /*
-        * XXX newfs should be newfs_udf here!
-        *     But newfs_udf does not support plain file mode.
+        * Sectorsize can be specified with -S, as a multiple of 512.
+        * newfs_udf takes humanized number as size in bytes as -s parameter!
         */
-       snprintf(cmd, 1024, "newfs -F -s %"PRId64" %s >/dev/null", size, image);
+       snprintf(cmd, 1024, "newfs_udf -F -s %"PRId64" %s >/dev/null", size, image);
        memset(&act, 0, sizeof(act));
        act.sa_handler = SIG_DFL;
        sigaction(SIGCHLD, &act, &oact);



Home | Main Index | Thread Index | Old Index