summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorBjörn Jacke <bj@sernet.de>2010-12-14 10:03:07 +0100
committerJeremy Allison <jra@samba.org>2010-12-17 21:11:04 +0100
commit5c27dd67c8eb454deffa611971778984381d6db8 (patch)
treea27fefe64003cab0f88c256ff5a3a79691dc0ef5 /source3/include
parent9634d03339073a094ad5d4a7c33b0c63a131c442 (diff)
downloadsamba-5c27dd67c8eb454deffa611971778984381d6db8.tar.gz
samba-5c27dd67c8eb454deffa611971778984381d6db8.tar.bz2
samba-5c27dd67c8eb454deffa611971778984381d6db8.zip
s3:smbd: add file_set_sparse() function
this is based on a patch for 3.3 from metze
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/proto.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 9b41321df6..53c1f5d370 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -4620,6 +4620,9 @@ int dos_attributes_to_stat_dos_flags(uint32_t dosmode);
uint32 dos_mode(connection_struct *conn, struct smb_filename *smb_fname);
int file_set_dosmode(connection_struct *conn, struct smb_filename *smb_fname,
uint32 dosmode, const char *parent_dir, bool newfile);
+NTSTATUS file_set_sparse(connection_struct *conn,
+ struct smb_filename *smb_fname,
+ bool sparse);
int file_ntimes(connection_struct *conn, const struct smb_filename *smb_fname,
struct smb_file_time *ft);
bool set_sticky_write_time_path(struct file_id fileid, struct timespec mtime);