-/* $OpenBSD: conf.c,v 1.39 2022/07/30 21:06:54 patrick Exp $ */
+/* $OpenBSD: conf.c,v 1.40 2022/08/15 13:13:41 kn Exp $ */
/*
* Copyright (c) 1996 Michael Shalayeff
#include "efipxe.h"
#include "softraid_arm64.h"
-const char version[] = "1.11";
+const char version[] = "1.12";
int debug = 0;
struct fs_ops file_system[] = {
-/* $OpenBSD: softraid_arm64.c,v 1.3 2021/06/02 22:44:27 krw Exp $ */
+/* $OpenBSD: softraid_arm64.c,v 1.4 2022/08/15 13:13:41 kn Exp $ */
/*
* Copyright (c) 2012 Joel Sing <jsing@openbsd.org>
break;
case 1:
+ case 0x1C:
if (bv->sbv_chunk_no == bv->sbv_chunks_found)
bv->sbv_state = BIOC_SVONLINE;
else if (bv->sbv_chunks_found > 0)
/* XXX - If I/O failed we should try another chunk... */
return dip->strategy(dip, rw, blk, size, buf, rsize);
- } else if (bv->sbv_level == 'C') {
+ } else if (bv->sbv_level == 'C' || bv->sbv_level == 0x1C) {
/* Select first online chunk. */
SLIST_FOREACH(bc, &bv->sbv_chunks, sbc_link)
return EADAPT;
}
- if (bv->sbv_level == 'C' && bv->sbv_keys == NULL)
+ if ((bv->sbv_level == 'C' || bv->sbv_level == 0x1C)
+ && bv->sbv_keys == NULL)
if (sr_crypto_unlock_volume(bv) != 0)
return EPERM;