Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/fs/udf While searching the VAT on recordable media, sear...



details:   https://anonhg.NetBSD.org/src/rev/57256b2a7af0
branches:  trunk
changeset: 1027696:57256b2a7af0
user:      reinoud <reinoud%NetBSD.org@localhost>
date:      Wed Dec 15 22:02:30 2021 +0000

description:
While searching the VAT on recordable media, search the last sector too!
This fixes Win10 formatted discs from being mounted incorrectly.

diffstat:

 sys/fs/udf/udf_subr.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r d94b11a6c098 -r 57256b2a7af0 sys/fs/udf/udf_subr.c
--- a/sys/fs/udf/udf_subr.c     Wed Dec 15 21:07:12 2021 +0000
+++ b/sys/fs/udf/udf_subr.c     Wed Dec 15 22:02:30 2021 +0000
@@ -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 @@
                        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;
 



Home | Main Index | Thread Index | Old Index