NetBSD-Bugs archive

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

Re: kern/57134: fstat on vnd returns empty size



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

From: Martin Husemann <martin%duskware.de@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: kern/57134: fstat on vnd returns empty size
Date: Tue, 27 Dec 2022 11:38:55 +0100

 So I compared on a working -current machine running evbearmv7hf-eb
 and the non-working -current evbarm machine (but with kernel and userland
 build from exactly the same tree).
 
 The difference is indeed the content of the fstat return value in sb:
 
 non-working case:
 
 (gdb) p sb
 $16 = {st_dev = 2817, st_mode = 8608, st_ino = 26895769, st_nlink = 1, 
   st_uid = 0, st_gid = 5, st_rdev = 4866, st_atim = {tv_sec = 1672128063, 
     tv_nsec = 370078288}, st_mtim = {tv_sec = 1672128063, 
     tv_nsec = 370078288}, st_ctim = {tv_sec = 1672128063, 
     tv_nsec = 371967752}, st_birthtim = {tv_sec = -1, tv_nsec = -1}, 
   st_size = 0, st_blocks = 0, st_blksize = 65536, st_flags = 0, st_gen = 0, 
   st_spare = {0, 0}}
 (gdb) p special
 $17 = 0x2bc78 <device> "/dev/rvnd0"
 # ll /dev/rvnd0
 crw-r-----  1 root  operator  19, 2 Dec 27 09:01 /dev/rvnd0
 
 
 working case:
 
 $6 = {st_dev = 4096, st_mode = 8608, st_ino = 15746732, st_nlink = 1, 
   st_uid = 0, st_gid = 5, st_rdev = 4866, st_atim = {tv_sec = 1672128436, 
     tv_nsec = 527951165}, st_mtim = {tv_sec = 1672128436, 
     tv_nsec = 527951165}, st_ctim = {tv_sec = 1672128436, 
     tv_nsec = 527951165}, st_birthtim = {tv_sec = 1596518740, 
     tv_nsec = 687526124}, st_size = 2097152, st_blocks = 0, 
   st_blksize = 65536, st_flags = 0, st_gen = 0, st_spare = {0, 0}}
 (gdb) p special
 $17 = 0x2bc78 <device> "/dev/rvnd0"
 
 # ll /dev/rvnd0
 crw-r-----  1 root  operator    19, 2 Dec 27 09:07 /dev/rvnd0
 
 
 So something in GENERIC that is not in my evbarm kernel? Some missing COMPAT_*
 or something most likely (but that still would not explain the sparc64 problem)
 
 Martin
 


Home | Main Index | Thread Index | Old Index