1*0a6a1f1dSLionel Sambuc /* $NetBSD: lfsv2.c,v 1.14 2015/08/12 18:28:01 dholland Exp $ */ 258a2b000SEvgeniy Ivanov 358a2b000SEvgeniy Ivanov #define LIBSA_LFS 458a2b000SEvgeniy Ivanov #define REQUIRED_LFS_VERSION 2 558a2b000SEvgeniy Ivanov 658a2b000SEvgeniy Ivanov #define ufs_open lfsv2_open 758a2b000SEvgeniy Ivanov #define ufs_close lfsv2_close 858a2b000SEvgeniy Ivanov #define ufs_read lfsv2_read 958a2b000SEvgeniy Ivanov #define ufs_write lfsv2_write 1058a2b000SEvgeniy Ivanov #define ufs_seek lfsv2_seek 1158a2b000SEvgeniy Ivanov #define ufs_stat lfsv2_stat 1258a2b000SEvgeniy Ivanov #if defined(LIBSA_ENABLE_LS_OP) 1358a2b000SEvgeniy Ivanov #define ufs_ls lfsv2_ls 14*0a6a1f1dSLionel Sambuc #if defined(__minix) && defined(LIBSA_ENABLE_LOAD_MODS_OP) 15*0a6a1f1dSLionel Sambuc #define ufs_load_mods lfsv2_load_mods 16*0a6a1f1dSLionel Sambuc #endif /* defined(__minix) && defined(LIBSA_ENABLE_LOAD_MODS_OP) */ 1758a2b000SEvgeniy Ivanov #endif 1858a2b000SEvgeniy Ivanov 19*0a6a1f1dSLionel Sambuc #define ufs_dinode lfs32_dinode 2084d9c625SLionel Sambuc 21*0a6a1f1dSLionel Sambuc #define fs_bsize lfs_dlfs_u.u_32.dlfs_bsize 2258a2b000SEvgeniy Ivanov 2358a2b000SEvgeniy Ivanov #ifdef LFS_IFILE_FRAG_ADDRESSING /* XXX see sys/ufs/lfs/ -- not tested */ 2484d9c625SLionel Sambuc #define INOPBx(fs) LFS_INOPF(fs) 2558a2b000SEvgeniy Ivanov #else 2684d9c625SLionel Sambuc #define INOPBx(fs) LFS_INOPB(fs) 2758a2b000SEvgeniy Ivanov #endif 2858a2b000SEvgeniy Ivanov 2984d9c625SLionel Sambuc #define UFS_NINDIR LFS_NINDIR 3084d9c625SLionel Sambuc #define ufs_blkoff(a, b) lfs_blkoff((a), (b)) 3184d9c625SLionel Sambuc #define ufs_lblkno(a, b) lfs_lblkno((a), (b)) 3284d9c625SLionel Sambuc #define dblksize(a, b, c) lfs_dblksize((a), (b), (c)) 3384d9c625SLionel Sambuc #define FSBTODB(a, b) LFS_FSBTODB((a), (b)) 3484d9c625SLionel Sambuc 3558a2b000SEvgeniy Ivanov #define FSMOD "lfs" 3658a2b000SEvgeniy Ivanov 3758a2b000SEvgeniy Ivanov #include "lib/libsa/ufs.c" 38