From 25992d68d86b5221f9d925929dd854e1a939869a Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Thu, 12 Mar 2020 19:19:38 +0000 Subject: Allow hppa boot(8) to read from an ffs2 filesystem; ok kettenis@ --- sys/arch/hppa/stand/boot/conf.c | 7 +++++-- sys/arch/hppa/stand/libsa/Makefile | 4 ++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/sys/arch/hppa/stand/boot/conf.c b/sys/arch/hppa/stand/boot/conf.c index 25757e1e8d0..0b8f0f1247d 100644 --- a/sys/arch/hppa/stand/boot/conf.c +++ b/sys/arch/hppa/stand/boot/conf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: conf.c,v 1.34 2019/10/29 02:55:51 deraadt Exp $ */ +/* $OpenBSD: conf.c,v 1.35 2020/03/12 19:19:37 otto Exp $ */ /* * Copyright (c) 1998-2004 Michael Shalayeff @@ -29,15 +29,18 @@ #include #include #include +#include #include #include -const char version[] = "1.8"; +const char version[] = "1.9"; int debug = 0; struct fs_ops file_system[] = { { ufs_open, ufs_close, ufs_read, ufs_write, ufs_seek, ufs_stat, ufs_readdir, ufs_fchmod }, + { ufs2_open, ufs2_close, ufs2_read, ufs2_write, ufs2_seek, + ufs2_stat, ufs2_readdir, ufs2_fchmod }, { cd9660_open, cd9660_close, cd9660_read, cd9660_write, cd9660_seek, cd9660_stat, cd9660_readdir }, { lif_open, lif_close, lif_read, lif_write, lif_seek, diff --git a/sys/arch/hppa/stand/libsa/Makefile b/sys/arch/hppa/stand/libsa/Makefile index e9f52c6976a..5aa85eb19f4 100644 --- a/sys/arch/hppa/stand/libsa/Makefile +++ b/sys/arch/hppa/stand/libsa/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.22 2019/10/29 02:55:51 deraadt Exp $ +# $OpenBSD: Makefile,v 1.23 2020/03/12 19:19:37 otto Exp $ .include "${.CURDIR}/../Makefile.inc" @@ -28,7 +28,7 @@ SRCS+= close.c closeall.c dev.c disklabel.c dkcksum.c fchmod.c fstat.c \ ioctl.c lseek.c open.c read.c stat.c write.c cread.c readdir.c cons.c # boot filesystems -SRCS+= ufs.c cd9660.c +SRCS+= ufs.c ufs2.c cd9660.c .PATH: ${DIR_SA} -- cgit v1.2.3