NetBSD-Bugs archive

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

Re: kern/32413 (stat on a special file doesn't reveal size until it was opened)



Synopsis: stat on a special file doesn't reveal size until it was opened

State-Changed-From-To: open->analyzed
State-Changed-By: pooka%narn.netbsd.org@localhost
State-Changed-When: Sun, 20 Jan 2008 17:13:40 +0200
State-Changed-Why:
stat should always report 0:
1) you can't know the size of a disk device without opening it and
   you don't want to open every device when you ls -l /dev
2) the size can change behind the vnode's back, so the cached value can
   become stale (already a problem!)






Home | Main Index | Thread Index | Old Index