NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: kern/57134: st_size of stat on vnd raw partition sometimes is 0, causing newfs to fail
The following reply was made to PR kern/57134; it has been noted by GNATS.
From: mlelstv%serpens.de@localhost (Michael van Elst)
To: gnats-bugs%netbsd.org@localhost
Cc:
Subject: Re: kern/57134: st_size of stat on vnd raw partition sometimes is 0, causing newfs to fail
Date: Sun, 1 Jan 2023 18:42:51 -0000 (UTC)
hannken%mailbox.org@localhost ("J. Hannken-Illjes") writes:
> Setting the size from spec_open() looks wrong, as a program configuring
> a vnd device may miss the size change if it uses open -> configure ->
> fstat with a single file descriptor.
The disk or partition size is defined by the disklabel, and that
isn't expected to change while the device is open. That is probably
also the reason to fetch the size on open, only then does the device
know about the label.
Home |
Main Index |
Thread Index |
Old Index