2015-08-12 21:28:00 +03:00
|
|
|
/* $NetBSD: lfsv1.c,v 1.14 2015/08/12 18:28:01 dholland Exp $ */
|
2003-02-24 02:17:42 +03:00
|
|
|
|
2003-04-11 15:27:06 +04:00
|
|
|
#define LIBSA_LFS
|
|
|
|
#define REQUIRED_LFS_VERSION 1
|
|
|
|
|
|
|
|
#define ufs_open lfsv1_open
|
|
|
|
#define ufs_close lfsv1_close
|
|
|
|
#define ufs_read lfsv1_read
|
|
|
|
#define ufs_write lfsv1_write
|
|
|
|
#define ufs_seek lfsv1_seek
|
|
|
|
#define ufs_stat lfsv1_stat
|
2011-12-25 10:09:08 +04:00
|
|
|
#if defined(LIBSA_ENABLE_LS_OP)
|
|
|
|
#define ufs_ls lfsv1_ls
|
|
|
|
#endif
|
2003-04-11 15:27:06 +04:00
|
|
|
|
2015-08-12 21:28:00 +03:00
|
|
|
#define ufs_dinode lfs32_dinode
|
2013-06-09 04:02:33 +04:00
|
|
|
|
2015-08-02 21:18:09 +03:00
|
|
|
#define fs_bsize lfs_dlfs_u.u_32.dlfs_ibsize
|
2003-04-11 15:27:06 +04:00
|
|
|
|
2013-06-18 22:18:57 +04:00
|
|
|
#define INOPBx(fs) LFS_INOPB(fs)
|
|
|
|
|
2015-07-24 09:56:41 +03:00
|
|
|
#define UFS_NINDIR LFS_NINDIR
|
Rename ambiguous macros:
MAXDIRSIZE -> UFS_MAXDIRSIZE or LFS_MAXDIRSIZE
NINDIR -> FFS_NINDIR, EXT2_NINDIR, LFS_NINDIR, or MFS_NINDIR
INOPB -> FFS_INOPB, LFS_INOPB
INOPF -> FFS_INOPF, LFS_INOPF
blksize -> ffs_blksize, ext2_blksize, or lfs_blksize
sblksize -> ffs_blksize
These are not the only ambiguously defined filesystem macros, of
course, there's a pile more. I may not have found all the ambiguous
definitions of blksize(), too, as there are a lot of other things
called 'blksize' in the system.
2013-06-19 21:51:25 +04:00
|
|
|
#define ufs_blkoff(a, b) lfs_blkoff((a), (b))
|
2013-06-23 11:28:36 +04:00
|
|
|
#define ufs_lblkno(a, b) lfs_lblkno((a), (b))
|
2013-06-18 22:18:57 +04:00
|
|
|
#define dblksize(a, b, c) lfs_dblksize((a), (b), (c))
|
Rename ambiguous macros:
MAXDIRSIZE -> UFS_MAXDIRSIZE or LFS_MAXDIRSIZE
NINDIR -> FFS_NINDIR, EXT2_NINDIR, LFS_NINDIR, or MFS_NINDIR
INOPB -> FFS_INOPB, LFS_INOPB
INOPF -> FFS_INOPF, LFS_INOPF
blksize -> ffs_blksize, ext2_blksize, or lfs_blksize
sblksize -> ffs_blksize
These are not the only ambiguously defined filesystem macros, of
course, there's a pile more. I may not have found all the ambiguous
definitions of blksize(), too, as there are a lot of other things
called 'blksize' in the system.
2013-06-19 21:51:25 +04:00
|
|
|
#define FSBTODB(fs, daddr) (daddr) /* LFSv1 uses sectors for addresses */
|
2003-04-11 15:27:06 +04:00
|
|
|
|
2008-11-19 15:36:41 +03:00
|
|
|
#define FSMOD "lfs"
|
|
|
|
|
2003-04-11 15:27:06 +04:00
|
|
|
#include "lib/libsa/ufs.c"
|