aboutsummaryrefslogtreecommitdiff
path: root/sys/ufs/ffs/ffs_extern.h
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2021-01-26 11:52:59 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2021-02-12 01:02:20 +0000
commit5952c86c78b177b5e904bf139e6b56519897c7e0 (patch)
treeb2e95ad0235abce010c22b1a67f6bafa2c9e9689 /sys/ufs/ffs/ffs_extern.h
parentf16c26b1c009fd0d87d07d3b1cf0d5078ad7f511 (diff)
downloadsrc-5952c86c78b177b5e904bf139e6b56519897c7e0.tar.gz
src-5952c86c78b177b5e904bf139e6b56519897c7e0.zip
ffs_inotovp(): interface to convert (ino, gen) into alive vnode
It generalizes the VFS_FHTOVP() interface, making it possible to fetch the inode without faking filehandle. Also it adds the ffs flags argument which allows to control ffs_vgetf() call. Requested by: mckusick Reviewed by: chs, mckusick Tested by: pho MFC after: 2 weeks Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'sys/ufs/ffs/ffs_extern.h')
-rw-r--r--sys/ufs/ffs/ffs_extern.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/ufs/ffs/ffs_extern.h b/sys/ufs/ffs/ffs_extern.h
index bdb3f533e1ad..9694489266b6 100644
--- a/sys/ufs/ffs/ffs_extern.h
+++ b/sys/ufs/ffs/ffs_extern.h
@@ -80,6 +80,8 @@ int ffs_freefile(struct ufsmount *, struct fs *, struct vnode *, ino_t,
void ffs_fserr(struct fs *, ino_t, char *);
int ffs_getcg(struct fs *, struct vnode *, u_int, int, struct buf **,
struct cg **);
+int ffs_inotovp(struct mount *, ino_t, u_int64_t, int, struct vnode **,
+ int);
int ffs_isblock(struct fs *, u_char *, ufs1_daddr_t);
int ffs_isfreeblock(struct fs *, u_char *, ufs1_daddr_t);
void ffs_oldfscompat_write(struct fs *, struct ufsmount *);