Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/fs/udf Rename metadata partition parameters to be less g...
details: https://anonhg.NetBSD.org/src/rev/c87102fd37b1
branches: trunk
changeset: 752377:c87102fd37b1
user: reinoud <reinoud%NetBSD.org@localhost>
date: Wed Feb 24 19:20:13 2010 +0000
description:
Rename metadata partition parameters to be less generic and add the flags.
diffstat:
sys/fs/udf/udf.h | 7 ++++---
sys/fs/udf/udf_subr.c | 9 +++++----
2 files changed, 9 insertions(+), 7 deletions(-)
diffs (51 lines):
diff -r ab268805f2c2 -r c87102fd37b1 sys/fs/udf/udf.h
--- a/sys/fs/udf/udf.h Wed Feb 24 19:14:12 2010 +0000
+++ b/sys/fs/udf/udf.h Wed Feb 24 19:20:13 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: udf.h,v 1.39 2010/02/24 19:14:12 reinoud Exp $ */
+/* $NetBSD: udf.h,v 1.40 2010/02/24 19:20:13 reinoud Exp $ */
/*
* Copyright (c) 2006, 2008 Reinoud Zandijk
@@ -330,8 +330,9 @@
struct udf_node *metadatabitmap_node; /* system node */
struct space_bitmap_desc*metadata_unalloc_dscr;
struct udf_bitmap metadata_unalloc_bits;
- uint32_t alloc_unit_size;
- uint16_t alignment_unit_size;
+ uint32_t metadata_alloc_unit_size;
+ uint16_t metadata_alignment_unit_size;
+ uint8_t metadata_flags;
/* rb tree for lookup icb to udf_node and sorted list for sync */
kmutex_t ihash_lock;
diff -r ab268805f2c2 -r c87102fd37b1 sys/fs/udf/udf_subr.c
--- a/sys/fs/udf/udf_subr.c Wed Feb 24 19:14:12 2010 +0000
+++ b/sys/fs/udf/udf_subr.c Wed Feb 24 19:20:13 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: udf_subr.c,v 1.102 2010/02/24 19:14:12 reinoud Exp $ */
+/* $NetBSD: udf_subr.c,v 1.103 2010/02/24 19:20:13 reinoud Exp $ */
/*
* Copyright (c) 2006, 2008 Reinoud Zandijk
@@ -29,7 +29,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__KERNEL_RCSID(0, "$NetBSD: udf_subr.c,v 1.102 2010/02/24 19:14:12 reinoud Exp $");
+__KERNEL_RCSID(0, "$NetBSD: udf_subr.c,v 1.103 2010/02/24 19:20:13 reinoud Exp $");
#endif /* not lint */
@@ -3119,8 +3119,9 @@
int error;
/* extract our allocation parameters set up on format */
- ump->alloc_unit_size = udf_rw32(mapping->pmm.alloc_unit_size);
- ump->alignment_unit_size = udf_rw16(mapping->pmm.alignment_unit_size);
+ ump->metadata_alloc_unit_size = udf_rw32(mapping->pmm.alloc_unit_size);
+ ump->metadata_alignment_unit_size = udf_rw16(mapping->pmm.alignment_unit_size);
+ ump->metadata_flags = mapping->pmm.flags;
DPRINTF(VOLUMES, ("Reading in Metadata files\n"));
icb_loc.loc.part_num = pmm->part_num;
Home |
Main Index |
Thread Index |
Old Index