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: Mon, 2 Jan 2023 10:01:24 -0000 (UTC)

 kre%munnari.OZ.AU@localhost (Robert Elz) writes:
 
 > Maybe it would be better for newfs to simply ignore st_size for all
 > devices (use it only when making a filesystem in a file) ?
 
 It almost does. For all cases where st_size is invalid, it is 0 and that
 value is ignored.
 
 
 > That would be trivial to make happen, just need to set st_size to 0
 > in the code that handles devices (and calls getdiskinfo()).
 
 I think having st_size being valid all the time for disks would be
 useful, in particular because Linux works like that.
 


Home | Main Index | Thread Index | Old Index