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 |
|
|
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; |
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 |
} |
} |
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 |
} |
} |