[BACK]Return to ufs_dirhash.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / ufs / ufs

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/ufs/ufs/ufs_dirhash.c between version 1.2 and 1.3

version 1.2, 2005/02/26 22:32:20 version 1.3, 2005/05/31 02:37:50
Line 780  ufsdirhash_dirtrunc(struct inode *ip, do
Line 780  ufsdirhash_dirtrunc(struct inode *ip, do
  * a directory block matches its actual contents. Panics if a mismatch   * a directory block matches its actual contents. Panics if a mismatch
  * is detected.   * is detected.
  *   *
  * On entry, `buf' should point to the start of an in-core   * On entry, `sbuf' should point to the start of an in-core
  * DIRBLKSIZ-sized directory block, and `offset' should contain the   * DIRBLKSIZ-sized directory block, and `offset' should contain the
  * offset from the start of the directory of that block.   * offset from the start of the directory of that block.
  */   */
 void  void
 ufsdirhash_checkblock(struct inode *ip, char *buf, doff_t offset)  ufsdirhash_checkblock(struct inode *ip, char *sbuf, doff_t offset)
 {  {
         struct dirhash *dh;          struct dirhash *dh;
         struct direct *dp;          struct direct *dp;
Line 810  ufsdirhash_checkblock(struct inode *ip, 
Line 810  ufsdirhash_checkblock(struct inode *ip, 
   
         nfree = 0;          nfree = 0;
         for (i = 0; i < dirblksiz; i += dp->d_reclen) {          for (i = 0; i < dirblksiz; i += dp->d_reclen) {
                 dp = (struct direct *)(buf + i);                  dp = (struct direct *)(sbuf + i);
                 if (dp->d_reclen == 0 || i + dp->d_reclen > dirblksiz)                  if (dp->d_reclen == 0 || i + dp->d_reclen > dirblksiz)
                         panic("ufsdirhash_checkblock: bad dir");                          panic("ufsdirhash_checkblock: bad dir");
   

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

CVSweb <webmaster@jp.NetBSD.org>