pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Curious shells/nushell issue
> As far as I could test it, this happens only with long-listing of /,
> works ok on any other directory.
>
I think it's the birthtime of /kern (also the files inside it) that
nushell is tripping on:
```
$ stat -x /kern
File: "/kern"
Size: 512 Blocks: 1 IO Block: 512 Directory
Device: 4095,1048575 Inode: 2 Links: 2
Mode: (0555/dr-xr-xr-x) Uid: ( 0/ root) Gid: ( 0/ wheel)
Access: 2023-12-28 15:26:36.390093559 +0000
Modify: 2023-12-28 15:26:36.390093559 +0000
Change: 2023-12-28 15:26:36.390093559 +0000
Birth: 1969-12-31 23:59:59.-000000001
$
```
You could try this patch as well:
```
diff -urN a/src/sys/miscfs/kernfs/kernfs_vnops.c b/src/sys/miscfs/kernfs/kernfs_vnops.c
--- a/src/sys/miscfs/kernfs/kernfs_vnops.c 2022-03-27 18:10:56.000000000 +0100
+++ b/src/sys/miscfs/kernfs/kernfs_vnops.c 2023-12-28 15:37:57.478425150 +0000
@@ -659,7 +659,7 @@
} else {
getnanotime(&vap->va_ctime);
}
- vap->va_atime = vap->va_mtime = vap->va_ctime;
+ vap->va_birthtime = vap->va_atime = vap->va_mtime = vap->va_ctime;
vap->va_gen = 0;
vap->va_flags = 0;
vap->va_rdev = 0;
```
-RVP
Home |
Main Index |
Thread Index |
Old Index