uint16_t flags2,
unsigned int max_data_bytes,
size_t *fixed_portion,
+ struct files_struct *fsp,
struct smb_filename *smb_fname,
char **ppdata,
int *ret_data_len);
return false;
}
+/*
+ * fsp is only valid for SMB2.
+ */
NTSTATUS smbd_do_qfsinfo(struct smbXsrv_connection *xconn,
connection_struct *conn,
TALLOC_CTX *mem_ctx,
uint16_t flags2,
unsigned int max_data_bytes,
size_t *fixed_portion,
+ struct files_struct *fsp,
struct smb_filename *fname,
char **ppdata,
int *ret_data_len)
/* we need to fake up a fsp here,
* because its not send in this call
*/
- files_struct fsp;
+ files_struct tmpfsp;
SMB_NTQUOTA_STRUCT quotas;
- ZERO_STRUCT(fsp);
+ ZERO_STRUCT(tmpfsp);
ZERO_STRUCT(quotas);
- fsp.conn = conn;
- fsp.fnum = FNUM_FIELD_INVALID;
+ tmpfsp.conn = conn;
+ tmpfsp.fnum = FNUM_FIELD_INVALID;
/* access check */
if (get_current_uid(conn) != 0) {
return NT_STATUS_ACCESS_DENIED;
}
- status = vfs_get_ntquota(&fsp, SMB_USER_FS_QUOTA_TYPE,
+ status = vfs_get_ntquota(&tmpfsp, SMB_USER_FS_QUOTA_TYPE,
NULL, "as);
if (!NT_STATUS_IS_OK(status)) {
DEBUG(0,("vfs_get_ntquota() failed for service [%s]\n",lp_servicename(talloc_tos(), lp_sub, SNUM(conn))));