Module Name: src
Committed By: reinoud
Date: Wed Dec 15 22:02:30 UTC 2021
Modified Files:
src/sys/fs/udf: udf_subr.c
Log Message:
While searching the VAT on recordable media, search the last sector too!
This fixes Win10 formatted discs from being mounted incorrectly.
To generate a diff of this commit:
cvs rdiff -u -r1.159 -r1.160 src/sys/fs/udf/udf_subr.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/fs/udf/udf_subr.c
diff -u src/sys/fs/udf/udf_subr.c:1.159 src/sys/fs/udf/udf_subr.c:1.160
--- src/sys/fs/udf/udf_subr.c:1.159 Sun Dec 5 04:21:31 2021
+++ src/sys/fs/udf/udf_subr.c Wed Dec 15 22:02:30 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: udf_subr.c,v 1.159 2021/12/05 04:21:31 msaitoh Exp $ */
+/* $NetBSD: udf_subr.c,v 1.160 2021/12/15 22:02:30 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.159 2021/12/05 04:21:31 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: udf_subr.c,v 1.160 2021/12/15 22:02:30 reinoud Exp $");
#endif /* not lint */
@@ -3102,7 +3102,7 @@ udf_search_vat(struct udf_mount *ump, un
if (vat_node)
vput(vat_node->vnode);
vat_loc++; /* walk forward */
- } while (vat_loc < late_vat_loc);
+ } while (vat_loc <= late_vat_loc);
if (accepted_vat_node)
break;