[BACK]Return to pass1.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sbin / fsck_lfs

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

Diff for /src/sbin/fsck_lfs/pass1.c between version 1.38 and 1.39

version 1.38, 2015/07/24 06:56:41 version 1.39, 2015/07/24 06:59:32
Line 227  checkinode(ino_t inumber, struct inodesc
Line 227  checkinode(ino_t inumber, struct inodesc
                  * Fake ndb value so direct/indirect block checks below                   * Fake ndb value so direct/indirect block checks below
                  * will detect any garbage after symlink string.                   * will detect any garbage after symlink string.
                  */                   */
                 if (dp->di_size < fs->lfs_maxsymlinklen ||                  if (dp->di_size < lfs_sb_getmaxsymlinklen(fs) ||
                     (fs->lfs_maxsymlinklen == 0 && dp->di_blocks == 0)) {                      (lfs_sb_getmaxsymlinklen(fs) == 0 && dp->di_blocks == 0)) {
                         ndb = howmany(dp->di_size, sizeof(ulfs_daddr_t));                          ndb = howmany(dp->di_size, sizeof(ulfs_daddr_t));
                         if (ndb > ULFS_NDADDR) {                          if (ndb > ULFS_NDADDR) {
                                 j = ndb - ULFS_NDADDR;                                  j = ndb - ULFS_NDADDR;

Legend:
Removed from v.1.38  
changed lines
  Added in v.1.39

CVSweb <webmaster@jp.NetBSD.org>