/[hurd]/hurd/ufs/alloc.c
ViewVC logotype

Diff of /hurd/ufs/alloc.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.23 by roland, Sun Dec 20 20:51:02 1998 UTC revision 1.24 by roland, Tue Jun 11 21:41:03 2002 UTC
# Line 1  Line 1 
1  /* Disk allocation routines  /* Disk allocation routines
2     Copyright (C) 1993, 94, 95, 96, 98 Free Software Foundation, Inc.     Copyright (C) 1993,94,95,96,98,2002 Free Software Foundation, Inc.
3    
4  This file is part of the GNU Hurd.  This file is part of the GNU Hurd.
5    
# Line 685  diskfs_alloc_node (struct node *dir, Line 685  diskfs_alloc_node (struct node *dir,
685          assert ("duplicate allocation" && !np->dn_stat.st_mode);          assert ("duplicate allocation" && !np->dn_stat.st_mode);
686          assert (! (np->dn_stat.st_mode & S_IPTRANS));          assert (! (np->dn_stat.st_mode & S_IPTRANS));
687          if (np->dn_stat.st_blocks) {          if (np->dn_stat.st_blocks) {
688            printf("free inode %d had %ld blocks\n",            printf("free inode %Ld had %Ld blocks\n",
689                   ino, np->dn_stat.st_blocks);                   ino, np->dn_stat.st_blocks);
690            np->dn_stat.st_blocks = 0;            np->dn_stat.st_blocks = 0;
691            np->dn_set_ctime = 1;            np->dn_set_ctime = 1;
# Line 1395  ffs_blkfree(register struct node *np, Line 1395  ffs_blkfree(register struct node *np,
1395          assert ((u_int)size <= fs->fs_bsize && !fragoff (fs, size));          assert ((u_int)size <= fs->fs_bsize && !fragoff (fs, size));
1396          cg = dtog(fs, bno);          cg = dtog(fs, bno);
1397          if ((u_int)bno >= fs->fs_size) {          if ((u_int)bno >= fs->fs_size) {
1398                  printf("bad block %ld, ino %d\n", bno, np->dn->number);                  printf("bad block %ld, ino %Ld\n", bno, np->dn->number);
1399  /*              ffs_fserr(fs, ip->i_uid, "bad block"); */  /*              ffs_fserr(fs, ip->i_uid, "bad block"); */
1400                  return;                  return;
1401          }          }
# Line 1518  diskfs_free_node (struct node *np, mode_ Line 1518  diskfs_free_node (struct node *np, mode_
1518          cgp->cg_time = diskfs_mtime->seconds;          cgp->cg_time = diskfs_mtime->seconds;
1519          ino %= fs->fs_ipg;          ino %= fs->fs_ipg;
1520          if (isclr(cg_inosused(cgp), ino)) {          if (isclr(cg_inosused(cgp), ino)) {
1521  /*              printf("dev = 0x%x, ino = %d, fs = %s\n",  /*              printf("dev = 0x%x, ino = %Ld, fs = %s\n",
1522                      pip->i_dev, ino, fs->fs_fsmnt); */                      pip->i_dev, ino, fs->fs_fsmnt); */
1523                  assert (diskfs_readonly);                  assert (diskfs_readonly);
1524          }          }

Legend:
Removed from v.1.23  
changed lines
  Added in v.1.24

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26