From: Thomas Veerman Date: Wed, 9 Jun 2010 11:05:16 +0000 (+0000) Subject: Turn off debug message. X-Git-Tag: v3.1.8~482 X-Git-Url: http://zhaoyanbai.com/repos/%22/xml/v3/zones/static/mult.png?a=commitdiff_plain;h=be6490f4b3b0a46e5ae34b26f0f2d46a383463a2;p=minix.git Turn off debug message. --- diff --git a/servers/mfs/inode.c b/servers/mfs/inode.c index 81f3441a2..0469e1cf9 100644 --- a/servers/mfs/inode.c +++ b/servers/mfs/inode.c @@ -226,10 +226,11 @@ register struct inode *rip; /* pointer to inode to be released */ if (rip->i_nlinks == NO_LINK) { /* i_nlinks == NO_LINK means free the inode. */ /* return all the disk blocks */ - if (truncate_inode(rip, (off_t) 0) != OK) { - printf("MFS: truncate of inode %u on dev %d failed\n", - rip->i_num, rip->i_dev); - } + + /* Ignore errors by truncate_inode in case inode is a block + * special or character special file. + */ + (void) truncate_inode(rip, (off_t) 0); rip->i_mode = I_NOT_ALLOC; /* clear I_TYPE field */ rip->i_dirt = DIRTY; free_inode(rip->i_dev, rip->i_num);