1 /* $NetBSD: lfsv2.c,v 1.14 2015/08/12 18:28:01 dholland 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 #if defined(__minix) && defined(LIBSA_ENABLE_LOAD_MODS_OP) 15 #define ufs_load_mods lfsv2_load_mods 16 #endif /* defined(__minix) && defined(LIBSA_ENABLE_LOAD_MODS_OP) */ 17 #endif 18 19 #define ufs_dinode lfs32_dinode 20 21 #define fs_bsize lfs_dlfs_u.u_32.dlfs_bsize 22 23 #ifdef LFS_IFILE_FRAG_ADDRESSING /* XXX see sys/ufs/lfs/ -- not tested */ 24 #define INOPBx(fs) LFS_INOPF(fs) 25 #else 26 #define INOPBx(fs) LFS_INOPB(fs) 27 #endif 28 29 #define UFS_NINDIR LFS_NINDIR 30 #define ufs_blkoff(a, b) lfs_blkoff((a), (b)) 31 #define ufs_lblkno(a, b) lfs_lblkno((a), (b)) 32 #define dblksize(a, b, c) lfs_dblksize((a), (b), (c)) 33 #define FSBTODB(a, b) LFS_FSBTODB((a), (b)) 34 35 #define FSMOD "lfs" 36 37 #include "lib/libsa/ufs.c" 38