release blocks if the inode has them; otherwise attempting
to rm devices and fast symlinks will lead to errors.
(Addresses Sourceforge Bug #954741 and #957244)
+2004-11-19 Theodore Ts'o <tytso@mit.edu>
+
+ * debugfs.c (kill_file_by_inode): Only iterate over the inode to
+ release blocks if the inode has them; otherwise attempting
+ to rm devices and fast symlinks will lead to errors.
+ (Addresses Sourceforge Bug #954741 and #957244)
+
2004-07-28 Theodore Ts'o <tytso@mit.edu>
* debugfs.c, debugfs.8.in: Add new option -d which allows the
inode_buf.i_dtime = time(NULL);
if (debugfs_write_inode(inode, &inode_buf, 0))
return;
+ if (!ext2fs_inode_has_valid_blocks(&inode_buf))
+ return;
ext2fs_block_iterate(current_fs, inode, 0, NULL,
release_blocks_proc, NULL);