Use ecma-167 constants instead of homegrown to prevent double mapping.
This commit is contained in:
parent
a1f7916969
commit
a2718fb081
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: udf.h,v 1.19 2008/07/19 16:00:35 reinoud Exp $ */
|
/* $NetBSD: udf.h,v 1.20 2008/07/19 16:14:09 reinoud Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2006, 2008 Reinoud Zandijk
|
* Copyright (c) 2006, 2008 Reinoud Zandijk
|
||||||
|
@ -179,11 +179,6 @@ extern int udf_verbose;
|
||||||
#define UDF_ALLOC_RELAXEDSEQUENTIAL 6 /* only nodes not seq. */
|
#define UDF_ALLOC_RELAXEDSEQUENTIAL 6 /* only nodes not seq. */
|
||||||
|
|
||||||
|
|
||||||
/* allocation descriptor styles */
|
|
||||||
#define UDF_ALLOCDSCR_SHORT 1 /* use short_ad allocation dscr. */
|
|
||||||
#define UDF_ALLOCDSCR_LONG 2 /* use long_ad allocation dscr. */
|
|
||||||
|
|
||||||
|
|
||||||
/* logical volume open/close actions */
|
/* logical volume open/close actions */
|
||||||
#define UDF_OPEN_SESSION 0x01 /* if needed writeout VRS + VDS */
|
#define UDF_OPEN_SESSION 0x01 /* if needed writeout VRS + VDS */
|
||||||
#define UDF_CLOSE_SESSION 0x02 /* close session after writing VAT */
|
#define UDF_CLOSE_SESSION 0x02 /* close session after writing VAT */
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: udf_subr.c,v 1.64 2008/07/19 16:00:35 reinoud Exp $ */
|
/* $NetBSD: udf_subr.c,v 1.65 2008/07/19 16:14:09 reinoud Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2006, 2008 Reinoud Zandijk
|
* Copyright (c) 2006, 2008 Reinoud Zandijk
|
||||||
|
@ -29,7 +29,7 @@
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
__KERNEL_RCSID(0, "$NetBSD: udf_subr.c,v 1.64 2008/07/19 16:00:35 reinoud Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: udf_subr.c,v 1.65 2008/07/19 16:14:09 reinoud Exp $");
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
|
|
||||||
|
@ -1816,14 +1816,14 @@ udf_process_vds(struct udf_mount *ump) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* determine default allocation descriptors to use */
|
/* determine default allocation descriptors to use */
|
||||||
ump->data_allocdscr = UDF_ALLOCDSCR_SHORT;
|
ump->data_allocdscr = UDF_ICB_SHORT_ALLOC;
|
||||||
ump->meta_allocdscr = UDF_ALLOCDSCR_SHORT;
|
ump->meta_allocdscr = UDF_ICB_SHORT_ALLOC;
|
||||||
if (n_pm > 1) {
|
if (n_pm > 1) {
|
||||||
ump->data_allocdscr = UDF_ALLOCDSCR_LONG;
|
ump->data_allocdscr = UDF_ICB_LONG_ALLOC;
|
||||||
ump->meta_allocdscr = UDF_ALLOCDSCR_LONG;
|
ump->meta_allocdscr = UDF_ICB_LONG_ALLOC;
|
||||||
/* metadata partitions are forced to have short */
|
/* metadata partitions are forced to have short */
|
||||||
if (n_meta)
|
if (n_meta)
|
||||||
ump->meta_allocdscr = UDF_ALLOCDSCR_SHORT;
|
ump->meta_allocdscr = UDF_ICB_SHORT_ALLOC;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* determine logical volume open/closure actions */
|
/* determine logical volume open/closure actions */
|
||||||
|
|
Loading…
Reference in New Issue