linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* punching holes in files
@ 2007-11-01 19:16 Steve French
  2007-11-01 23:17 ` Anton Altaparmakov
  2007-11-03  0:43 ` Large SMBwriteX testing Jeremy Allison
  0 siblings, 2 replies; 5+ messages in thread
From: Steve French @ 2007-11-01 19:16 UTC (permalink / raw)
  To: samba-technical, linux-cifs-client; +Cc: Amit K. Arora, linux-fsdevel

madvise_remove (in Linux) is used to free the backing store associated
with pages (punching a hole in a file).   This is one of the vfs
operations that we do not send over the wire to Samba (so this call
would return -ENOSYS locally).   Any thoughts on whether this could be
done with an obscure SetFileInfo level or FCNTL or whether it is worth
adding to the CIFS POSIX Extensions?

A second interesting question is whether to implement fallocate over
the wire.  sys_fallocate takes a range (and also a flag which
indicates whether to extend the size beyond end of file).
SET_FILE_ALLOCATION_INFO takes a size field rather than a range.  For
the case of the range starting at zero, we could simply call Trans2
set pathinfo (or file info) with SET_FILE_ALLOCATION_INFO.   Should we
add a CIFS POSIX Extension operation for this too?

By the way it looks like OCFS2 (not just ext4) implement these.

-- 
Thanks,

Steve

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

end of thread, other threads:[~2007-11-07 22:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-01 19:16 punching holes in files Steve French
2007-11-01 23:17 ` Anton Altaparmakov
2007-11-02  7:30   ` Volker Lendecke
2007-11-03  0:43 ` Large SMBwriteX testing Jeremy Allison
2007-11-07 22:56   ` Steve French

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).