mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
smbd: Make smb_set_file_size() public
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
parent
765f9bcf66
commit
1c21fc72e9
@ -1143,6 +1143,13 @@ NTSTATUS smb_set_file_time(connection_struct *conn,
|
||||
struct smb_filename *smb_fname,
|
||||
struct smb_file_time *ft,
|
||||
bool setting_write_time);
|
||||
NTSTATUS smb_set_file_size(connection_struct *conn,
|
||||
struct smb_request *req,
|
||||
files_struct *fsp,
|
||||
struct smb_filename *smb_fname,
|
||||
const SMB_STRUCT_STAT *psbuf,
|
||||
off_t size,
|
||||
bool fail_after_createfile);
|
||||
|
||||
enum perm_type {
|
||||
PERM_NEW_FILE,
|
||||
|
@ -4652,13 +4652,13 @@ static NTSTATUS smb_set_file_dosmode(connection_struct *conn,
|
||||
Deal with setting the size from any of the setfilepathinfo functions.
|
||||
****************************************************************************/
|
||||
|
||||
static NTSTATUS smb_set_file_size(connection_struct *conn,
|
||||
struct smb_request *req,
|
||||
files_struct *fsp,
|
||||
struct smb_filename *smb_fname,
|
||||
const SMB_STRUCT_STAT *psbuf,
|
||||
off_t size,
|
||||
bool fail_after_createfile)
|
||||
NTSTATUS smb_set_file_size(connection_struct *conn,
|
||||
struct smb_request *req,
|
||||
files_struct *fsp,
|
||||
struct smb_filename *smb_fname,
|
||||
const SMB_STRUCT_STAT *psbuf,
|
||||
off_t size,
|
||||
bool fail_after_createfile)
|
||||
{
|
||||
NTSTATUS status = NT_STATUS_OK;
|
||||
files_struct *new_fsp = NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user