On Thu, Apr 09, 2015 at 03:44:35PM -0600, Andreas Dilger wrote: > > > > + /* > > + * TODO: We don't yet support fallocate with encrypted files. > > + */ > > + if (ext4_encrypted_inode(inode)) > > + return -EOPNOTSUPP; > > Any plans for this? Would reading from encrypted files with unwritten > extents just generate garbage from urandom if the key wasn't available, > or would it still return zero? This is on my todo list to fix. It actually mostly works today, except for when we write into the middle of an unwritten extent, under some circumstances the extent splitting code will simply write zeros to some of the unwritten pages to avoid needing to split a leaf node. So what we need to do is implement a function which encrypts the zero page and writes that out instead of just calling sb_issue_zeroout(). - Ted -- To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html