Add UDF_ICB_FILETYPE_REALTIME type as found on UDF 2.50 discs. Also revert

a multiplication order to enforce 64 bit math.
This commit is contained in:
reinoud 2007-01-04 04:15:43 +00:00
parent 636b044677
commit 1d48d18121
3 changed files with 9 additions and 6 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: ecma167-udf.h,v 1.5 2006/10/22 00:06:48 reinoud Exp $ */
/* $NetBSD: ecma167-udf.h,v 1.6 2007/01/04 04:15:43 reinoud Exp $ */
/*-
* Copyright (c) 2003, 2004, 2005, 2006 Reinoud Zandijk <reinoud@netbsd.org>
@ -283,6 +283,7 @@ struct icb_tag {
#define UDF_ICB_FILETYPE_SYMLINK 12
#define UDF_ICB_FILETYPE_STREAMDIR 13
#define UDF_ICB_FILETYPE_VAT 248
#define UDF_ICB_FILETYPE_REALTIME 249
#define UDF_ICB_FILETYPE_META_MAIN 250
#define UDF_ICB_FILETYPE_META_MIRROR 251

View File

@ -1,4 +1,4 @@
/* $NetBSD: udf_subr.c,v 1.27 2007/01/04 02:42:19 reinoud Exp $ */
/* $NetBSD: udf_subr.c,v 1.28 2007/01/04 04:15:43 reinoud Exp $ */
/*
* Copyright (c) 2006 Reinoud Zandijk
@ -36,7 +36,7 @@
#include <sys/cdefs.h>
#ifndef lint
__RCSID("$NetBSD: udf_subr.c,v 1.27 2007/01/04 02:42:19 reinoud Exp $");
__RCSID("$NetBSD: udf_subr.c,v 1.28 2007/01/04 04:15:43 reinoud Exp $");
#endif /* not lint */
@ -2143,11 +2143,13 @@ udf_get_node(struct udf_mount *ump, struct long_ad *node_icb_loc,
case UDF_ICB_FILETYPE_SYMLINK :
nvp->v_type = VLNK;
break;
case UDF_ICB_FILETYPE_VAT :
case UDF_ICB_FILETYPE_META_MAIN :
case UDF_ICB_FILETYPE_META_MIRROR :
nvp->v_type = VNON;
break;
case UDF_ICB_FILETYPE_RANDOMACCESS :
case UDF_ICB_FILETYPE_REALTIME :
nvp->v_type = VREG;
break;
default:

View File

@ -1,4 +1,4 @@
/* $NetBSD: udf_vnops.c,v 1.8 2006/12/09 16:11:51 chs Exp $ */
/* $NetBSD: udf_vnops.c,v 1.9 2007/01/04 04:15:43 reinoud Exp $ */
/*
* Copyright (c) 2006 Reinoud Zandijk
@ -36,7 +36,7 @@
#include <sys/cdefs.h>
#ifndef lint
__RCSID("$NetBSD: udf_vnops.c,v 1.8 2006/12/09 16:11:51 chs Exp $");
__RCSID("$NetBSD: udf_vnops.c,v 1.9 2007/01/04 04:15:43 reinoud Exp $");
#endif /* not lint */
@ -698,7 +698,7 @@ udf_getattr(void *v)
vap->va_gen = 1; /* no multiple generations yes (!?) */
vap->va_flags = 0; /* no flags */
vap->va_rdev = udf_node->rdev;
vap->va_bytes = udf_node->ump->discinfo.sector_size * blkssize;
vap->va_bytes = blkssize * udf_node->ump->discinfo.sector_size;
vap->va_filerev = 1; /* TODO file revision numbers? */
vap->va_vaflags = 0; /* TODO which va_vaflags? */