Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/fsck_udf Relax constraints on sequential media detectio...
details: https://anonhg.NetBSD.org/src/rev/ec24edef9181
branches: trunk
changeset: 365804:ec24edef9181
user: reinoud <reinoud%NetBSD.org@localhost>
date: Mon Apr 25 15:37:14 2022 +0000
description:
Relax constraints on sequential media detection by checking for VAT format.
This allows fixing images of VAT formatted media too.
diffstat:
sbin/fsck_udf/main.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r f5aa6be858c5 -r ec24edef9181 sbin/fsck_udf/main.c
--- a/sbin/fsck_udf/main.c Mon Apr 25 15:18:15 2022 +0000
+++ b/sbin/fsck_udf/main.c Mon Apr 25 15:37:14 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: main.c,v 1.12 2022/04/25 15:18:15 reinoud Exp $ */
+/* $NetBSD: main.c,v 1.13 2022/04/25 15:37:14 reinoud Exp $ */
/*
* Copyright (c) 2022 Reinoud Zandijk
@@ -37,7 +37,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: main.c,v 1.12 2022/04/25 15:18:15 reinoud Exp $");
+__RCSID("$NetBSD: main.c,v 1.13 2022/04/25 15:37:14 reinoud Exp $");
#endif /* not lint */
#include <stdio.h>
@@ -2862,9 +2862,8 @@
}
/* if we are not on sequential media, we're done */
- if ((mmc_discinfo.mmc_cur & MMC_CAP_SEQUENTIAL) == 0)
+ if ((context.format_flags & FORMAT_VAT) == 0)
return 0;
- assert(context.format_flags & FORMAT_VAT);
/* if the disc is full, we drop back to read only */
if (mmc_discinfo.disc_state == MMC_STATE_FULL)
Home |
Main Index |
Thread Index |
Old Index