Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/fs/common Initialize mount args version info.
details: https://anonhg.NetBSD.org/src/rev/1ca1164a2322
branches: trunk
changeset: 787740:1ca1164a2322
user: martin <martin%NetBSD.org@localhost>
date: Sun Jun 30 15:42:43 2013 +0000
description:
Initialize mount args version info.
Add comment about a bogusly used "newfs" where "newfs_udf" is meant.
diffstat:
tests/fs/common/fstest_udf.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diffs (28 lines):
diff -r 46f3ccf5d605 -r 1ca1164a2322 tests/fs/common/fstest_udf.c
--- a/tests/fs/common/fstest_udf.c Sun Jun 30 15:05:49 2013 +0000
+++ b/tests/fs/common/fstest_udf.c Sun Jun 30 15:42:43 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fstest_udf.c,v 1.2 2013/06/30 15:05:49 martin Exp $ */
+/* $NetBSD: fstest_udf.c,v 1.3 2013/06/30 15:42:43 martin Exp $ */
/*-
* Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -63,6 +63,10 @@
struct sigaction act, oact;
size /= 512;
+ /*
+ * XXX newfs should be newfs_udf here!
+ * But newfs_udf does not support plain file mode.
+ */
snprintf(cmd, 1024, "newfs -F -s %"PRId64" %s >/dev/null", size, image);
memset(&act, 0, sizeof(act));
act.sa_handler = SIG_DFL;
@@ -83,6 +87,7 @@
snprintf(args->ta_devpath, MAXPATHLEN, "/dev/device%d.udf", num);
snprintf(args->ta_imgpath, MAXPATHLEN, "%s", image);
args->ta_uargs.fspec = args->ta_devpath;
+ args->ta_uargs.version = UDFMNT_VERSION;
res = rump_pub_etfs_register(args->ta_devpath, image, RUMP_ETFS_BLK);
if (res != 0) {
Home |
Main Index |
Thread Index |
Old Index