Module Name: src Committed By: tsutsui Date: Sat Dec 3 06:08:18 UTC 2022
Modified Files: src/sys/arch/hp300/dev: rd.c Log Message: Add empty DIOCCACHESYNC ioctl(2) for rd(4). Without this raid(4) always complains on various raidctl(8) ops: > raid0: cache flush[0] to component 0 failed (22) RAID1 configured by raid(4) just works HP-IB disks on hp300. To generate a diff of this commit: cvs rdiff -u -r1.122 -r1.123 src/sys/arch/hp300/dev/rd.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/hp300/dev/rd.c diff -u src/sys/arch/hp300/dev/rd.c:1.122 src/sys/arch/hp300/dev/rd.c:1.123 --- src/sys/arch/hp300/dev/rd.c:1.122 Thu Dec 1 15:02:11 2022 +++ src/sys/arch/hp300/dev/rd.c Sat Dec 3 06:08:18 2022 @@ -1,4 +1,4 @@ -/* $NetBSD: rd.c,v 1.122 2022/12/01 15:02:11 tsutsui Exp $ */ +/* $NetBSD: rd.c,v 1.123 2022/12/03 06:08:18 tsutsui Exp $ */ /*- * Copyright (c) 1996, 1997 The NetBSD Foundation, Inc. @@ -72,7 +72,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: rd.c,v 1.122 2022/12/01 15:02:11 tsutsui Exp $"); +__KERNEL_RCSID(0, "$NetBSD: rd.c,v 1.123 2022/12/03 06:08:18 tsutsui Exp $"); #include "opt_useleds.h" @@ -1363,6 +1363,10 @@ rdioctl(dev_t dev, u_long cmd, void *dat case DIOCGDEFLABEL: rdgetdefaultlabel(sc, (struct disklabel *)data); return 0; + + case DIOCCACHESYNC: + /* no cache to be flushed but required to appease raid(4) */ + return 0; } return EINVAL; }