xref: /minix/sys/lib/libsa/lfsv2.c (revision 58a2b000)
1 /* $NetBSD: lfsv2.c,v 1.4 2011/12/25 06:09:08 tsutsui Exp $ */
2 
3 #define	LIBSA_LFS
4 #define	REQUIRED_LFS_VERSION	2
5 
6 #define	ufs_open		lfsv2_open
7 #define	ufs_close		lfsv2_close
8 #define	ufs_read		lfsv2_read
9 #define	ufs_write		lfsv2_write
10 #define	ufs_seek		lfsv2_seek
11 #define	ufs_stat		lfsv2_stat
12 #if defined(LIBSA_ENABLE_LS_OP)
13 #define	ufs_ls			lfsv2_ls
14 #endif
15 
16 #define	fs_bsize		lfs_bsize
17 #define	IFILE_Vx		IFILE
18 
19 #ifdef LFS_IFILE_FRAG_ADDRESSING	/* XXX see sys/ufs/lfs/ -- not tested */
20 #define	INOPBx(fs) INOPF(fs)
21 #else
22 #define	INOPBx(fs) INOPB(fs)
23 #endif
24 
25 #define	FSMOD			"lfs"
26 #define	FSMOD2			"ffs"
27 
28 #include "lib/libsa/ufs.c"
29