Dear tech,
while reading through ffs code I was looking for calls to ffs_truncate.
This would have saved me a few seconds.
OK?
mbuhl
Index: ufs/ffs/ffs_vfsops.c
===================================================================
RCS file: /cvs/src/sys/ufs/ffs/ffs_vfsops.c,v
retrieving revision 1.193
diff -u -p -r1.193 ffs_vfsops.c
--- ufs/ffs/ffs_vfsops.c 12 Aug 2022 14:30:53 -0000 1.193
+++ ufs/ffs/ffs_vfsops.c 14 Apr 2023 11:35:16 -0000
@@ -89,12 +89,12 @@ const struct vfsops ffs_vfsops = {
};
struct inode_vtbl ffs_vtbl = {
- ffs_truncate,
- ffs_update,
- ffs_inode_alloc,
- ffs_inode_free,
- ffs_balloc,
- ffs_bufatoff
+ .iv_truncate = ffs_truncate,
+ .iv_update = ffs_update,
+ .iv_inode_alloc = ffs_inode_alloc,
+ .iv_inode_free = ffs_inode_free,
+ .iv_buf_alloc = ffs_balloc,
+ .iv_bufatoff = ffs_bufatoff
};
int