b=18695
i=adilger
Add LASSERTF in fsfilt_ext3_setattr() when truncating a directory.
struct inode *inode = dentry->d_inode;
int rc = 0;
+ LASSERTF(!(iattr->ia_valid & ATTR_SIZE) || !S_ISDIR(inode->i_mode),
+ "changing i_size on directory #%lu (%p) new %lu old %lu\n",
+ inode->i_ino, inode, iattr->ia_size, i_size_read(inode));
+
/* Avoid marking the inode dirty on the superblock list unnecessarily.
* We are already writing the inode to disk as part of this
* transaction and want to avoid a lot of extra inode writeout