linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* truncate in ecryptfs
@ 2009-10-14 15:12 Christoph Hellwig
  2009-10-14 15:37 ` Tyler Hicks
  0 siblings, 1 reply; 5+ messages in thread
From: Christoph Hellwig @ 2009-10-14 15:12 UTC (permalink / raw)
  To: tyhicks, kirkland; +Cc: linux-fsdevel

It looks like ecryptfs calls vmtruncate directly on the lower filesystem,
which is quite wrong.  Vmtruncate is only a helper for the filesystem,
and while most filesystems end up calling vmtruncate from their
->setattr implementation if ATTR_SIZE is set there are many that require
additional work.  I think ecryptfs needs to got through notify_change()
/ ->setattr if it wants truncate to work reliably and without silent
corruption or leaking blocks on a variety of filesystems.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-10-25  7:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-14 15:12 truncate in ecryptfs Christoph Hellwig
2009-10-14 15:37 ` Tyler Hicks
2009-10-15  4:19   ` [PATCH] eCryptfs: Use notify_change for truncating lower inodes Tyler Hicks
2009-10-15 16:55     ` Dustin Kirkland
2009-10-25  7:22     ` Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).