version 1.7, 2013/06/08 02:12:56 |
version 1.8, 2013/06/08 02:13:33 |
Line 707 ulfs_dirbad(struct inode *ip, doff_t off |
|
Line 707 ulfs_dirbad(struct inode *ip, doff_t off |
|
* record length must be multiple of 4 |
* record length must be multiple of 4 |
* entry must fit in rest of its DIRBLKSIZ block |
* entry must fit in rest of its DIRBLKSIZ block |
* record must be large enough to contain entry |
* record must be large enough to contain entry |
* name is not longer than FFS_MAXNAMLEN |
* name is not longer than LFS_MAXNAMLEN |
* name must be as long as advertised, and null terminated |
* name must be as long as advertised, and null terminated |
*/ |
*/ |
int |
int |
Line 735 ulfs_dirbadentry(struct vnode *dp, struc |
|
Line 735 ulfs_dirbadentry(struct vnode *dp, struc |
|
dirblksiz - (entryoffsetinblock & (dirblksiz - 1)) || |
dirblksiz - (entryoffsetinblock & (dirblksiz - 1)) || |
ulfs_rw16(ep->d_reclen, needswap) < |
ulfs_rw16(ep->d_reclen, needswap) < |
DIRSIZ(FSFMT(dp), ep, needswap) || |
DIRSIZ(FSFMT(dp), ep, needswap) || |
namlen > FFS_MAXNAMLEN) { |
namlen > LFS_MAXNAMLEN) { |
/*return (1); */ |
/*return (1); */ |
printf("First bad, reclen=%#x, DIRSIZ=%lu, namlen=%d, " |
printf("First bad, reclen=%#x, DIRSIZ=%lu, namlen=%d, " |
"flags=%#x, entryoffsetinblock=%d, dirblksiz = %d\n", |
"flags=%#x, entryoffsetinblock=%d, dirblksiz = %d\n", |