NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: install/56227: Install fails on 32 MB i386



The following reply was made to PR install/56227; it has been noted by GNATS.

From: mlelstv%serpens.de@localhost (Michael van Elst)
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: install/56227: Install fails on 32 MB i386
Date: Wed, 2 Jun 2021 05:17:38 -0000 (UTC)

 martin%duskware.de@localhost (Martin Husemann) writes:
 
 > # set swap = index of swap wedge, ffs = index of ffs wedge
 > #  now this is the step only done for the 32 MB RAM case:
 > 	swapctl -a /dev/dk${swap}	# <-- without this it works
 > /sbin/newfs -V2 -O 2  /dev/rdk${ffs}
 > newfs: /dev/rdk${ffs}: open for write: Read-only file system
 
 
 The problem was that the dk driver now verifies if a wedge is opened
 read-only, but that information only exists if that particular
 wedge was the first one opened for a particular parent device.
 Other wedges of that parent don't open it and use the mode value 0,
 which is interpreted as read-only.
 
 The failure only affected multiple opens of the same device, where
 the open mode is checked and newfs opens the device twice.
 
 I didn't notice it initially, because I run devpubd which
 opens each wedge when it attaches for a 'dkctl getwedgeinfo'
 so that for each wedge, it's the first one and the open mode
 is stored.
 


Home | Main Index | Thread Index | Old Index