diff options
author | Tim Prouty <tprouty@samba.org> | 2009-01-26 15:39:40 -0800 |
---|---|---|
committer | Tim Prouty <tprouty@samba.org> | 2009-01-29 15:29:33 -0800 |
commit | b8f7cdbd79918bba0fea181f97fff5ab0c79192d (patch) | |
tree | 6716b36bb6421e0cff45dc224a1705bb396e8dd2 /source3/smbd/nttrans.c | |
parent | aeb23872e25fb720140a10ce01a4211d228b6555 (diff) | |
download | samba-b8f7cdbd79918bba0fea181f97fff5ab0c79192d.tar.gz samba-b8f7cdbd79918bba0fea181f97fff5ab0c79192d.tar.bz2 samba-b8f7cdbd79918bba0fea181f97fff5ab0c79192d.zip |
s3: Add a new SMB_VFS_GET_ALLOC_SIZE vfs operation
This allows module implementors to customize what allocation size is
returned to the client.
Diffstat (limited to 'source3/smbd/nttrans.c')
-rw-r--r-- | source3/smbd/nttrans.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/nttrans.c b/source3/smbd/nttrans.c index 1ee3edbdbe..0ad4df6e90 100644 --- a/source3/smbd/nttrans.c +++ b/source3/smbd/nttrans.c @@ -621,7 +621,7 @@ void reply_ntcreate_and_X(struct smb_request *req) p += 8; SIVAL(p,0,fattr); /* File Attributes. */ p += 4; - SOFF_T(p, 0, get_allocation_size(conn,fsp,&sbuf)); + SOFF_T(p, 0, SMB_VFS_GET_ALLOC_SIZE(conn,fsp,&sbuf)); p += 8; SOFF_T(p,0,file_len); p += 8; @@ -1086,7 +1086,7 @@ static void call_nt_transact_create(connection_struct *conn, p += 8; SIVAL(p,0,fattr); /* File Attributes. */ p += 4; - SOFF_T(p, 0, get_allocation_size(conn,fsp,&sbuf)); + SOFF_T(p, 0, SMB_VFS_GET_ALLOC_SIZE(conn,fsp,&sbuf)); p += 8; SOFF_T(p,0,file_len); p += 8; |