1*58a2b000SEvgeniy Ivanov /* $NetBSD: lfsv1.c,v 1.4 2011/12/25 06:09:08 tsutsui Exp $ */ 2*58a2b000SEvgeniy Ivanov 3*58a2b000SEvgeniy Ivanov #define LIBSA_LFS 4*58a2b000SEvgeniy Ivanov #define REQUIRED_LFS_VERSION 1 5*58a2b000SEvgeniy Ivanov 6*58a2b000SEvgeniy Ivanov #define ufs_open lfsv1_open 7*58a2b000SEvgeniy Ivanov #define ufs_close lfsv1_close 8*58a2b000SEvgeniy Ivanov #define ufs_read lfsv1_read 9*58a2b000SEvgeniy Ivanov #define ufs_write lfsv1_write 10*58a2b000SEvgeniy Ivanov #define ufs_seek lfsv1_seek 11*58a2b000SEvgeniy Ivanov #define ufs_stat lfsv1_stat 12*58a2b000SEvgeniy Ivanov #if defined(LIBSA_ENABLE_LS_OP) 13*58a2b000SEvgeniy Ivanov #define ufs_ls lfsv1_ls 14*58a2b000SEvgeniy Ivanov #endif 15*58a2b000SEvgeniy Ivanov 16*58a2b000SEvgeniy Ivanov #define fs_bsize lfs_ibsize 17*58a2b000SEvgeniy Ivanov #define IFILE_Vx IFILE_V1 18*58a2b000SEvgeniy Ivanov 19*58a2b000SEvgeniy Ivanov #define FSBTODB(fs, daddr) (daddr) /* LFSv1 uses sectors for addresses */ 20*58a2b000SEvgeniy Ivanov #define INOPBx(fs) INOPB(fs) 21*58a2b000SEvgeniy Ivanov 22*58a2b000SEvgeniy Ivanov #define FSMOD "lfs" 23*58a2b000SEvgeniy Ivanov #define FSMOD2 "ffs" 24*58a2b000SEvgeniy Ivanov 25*58a2b000SEvgeniy Ivanov #include "lib/libsa/ufs.c" 26