Clarify hack to move LVID sequence forward if there are bad blocks there
since the automatic bad block skipping is not yet done.
This commit is contained in:
parent
fd86ec116b
commit
a0bade49b0
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: udf_create.c,v 1.2 2008/06/19 10:23:31 reinoud Exp $ */
|
/* $NetBSD: udf_create.c,v 1.3 2008/06/19 10:25:51 reinoud Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2006, 2008 Reinoud Zandijk
|
* Copyright (c) 2006, 2008 Reinoud Zandijk
|
||||||
|
@ -28,7 +28,7 @@
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
__RCSID("$NetBSD: udf_create.c,v 1.2 2008/06/19 10:23:31 reinoud Exp $");
|
__RCSID("$NetBSD: udf_create.c,v 1.3 2008/06/19 10:25:51 reinoud Exp $");
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
@ -150,9 +150,8 @@ udf_calculate_disc_layout(int format_flags, int min_udf,
|
||||||
if (format_flags & FORMAT_WORM)
|
if (format_flags & FORMAT_WORM)
|
||||||
layout.lvis_size = 64 * blockingnr;
|
layout.lvis_size = 64 * blockingnr;
|
||||||
|
|
||||||
/* TODO skip bad blocks in LVID sequence */
|
/* TODO skip bad blocks in LVID sequence; for now use f.e. */
|
||||||
/* using f.e. first_lba+=96; */
|
/* first_lba+=128; */
|
||||||
|
|
||||||
layout.lvis = first_lba;
|
layout.lvis = first_lba;
|
||||||
first_lba += layout.lvis_size;
|
first_lba += layout.lvis_size;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue