[Samba] delete file being transferred

Chaojie.Xiao at emc.com Chaojie.Xiao at emc.com
Tue Mar 15 19:31:50 MDT 2011

So there is no method to delete the file that is beging transferred if I shutdown the samba service or just close specific share folder with smbcontrol. Right?

On Mon, Mar 14, 2011 at 10:48:33PM -0400, Chaojie.Xiao at emc.com wrote:
> I am currently using lvm snapshot. if I am uploading a big
> file to samba share folder and during the transmission I
> want to make a snapshot with lvcreate for the volume where
> share folder is.
> If I make snapshot when file is still transferred it might
> exist some issue because the file is not complete. 
> So I want to know is there any method to delete the file
> that is being transferred if I want to make a snapshot.

In the latest not yet released versions we have added the
option "log writeable files on exit = yes/no". This logs
all files that have been open for writing when an smbd exits
unexpectedly for some reason. With that option you will at
least know which files have been in that situation and take
care of them properly. You can find the corresponding patch


Please be aware that just shutting down Samba will lead to
corrupt files. We added that message for administrators who
want to be informed about those potentially corrupt files.


SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen

More information about the samba mailing list