]> Zhao Yanbai Git Server - minix.git/commitdiff
Turn off debug message.
authorThomas Veerman <thomas@minix3.org>
Wed, 9 Jun 2010 11:05:16 +0000 (11:05 +0000)
committerThomas Veerman <thomas@minix3.org>
Wed, 9 Jun 2010 11:05:16 +0000 (11:05 +0000)
servers/mfs/inode.c

index 81f3441a2451afe12021e39de4bf34d6cb6e4140..0469e1cf9cce73c97c177230f2cf7b377bef7289 100644 (file)
@@ -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);