mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
pvfs: remove unused args from pvfs_delete_on_close_set()
metze
This commit is contained in:
parent
c78451ce06
commit
73f12be7c6
@ -1724,8 +1724,7 @@ NTSTATUS pvfs_can_stat(struct pvfs_state *pvfs,
|
||||
/*
|
||||
determine if delete on close is set on
|
||||
*/
|
||||
bool pvfs_delete_on_close_set(struct pvfs_state *pvfs, struct pvfs_file_handle *h,
|
||||
int *open_count, char **path)
|
||||
bool pvfs_delete_on_close_set(struct pvfs_state *pvfs, struct pvfs_file_handle *h)
|
||||
{
|
||||
NTSTATUS status;
|
||||
bool del_on_close;
|
||||
|
@ -380,7 +380,7 @@ NTSTATUS pvfs_qfileinfo(struct ntvfs_module_context *ntvfs,
|
||||
switch (info->generic.level) {
|
||||
case RAW_FILEINFO_STANDARD_INFO:
|
||||
case RAW_FILEINFO_STANDARD_INFORMATION:
|
||||
if (pvfs_delete_on_close_set(pvfs, h, NULL, NULL)) {
|
||||
if (pvfs_delete_on_close_set(pvfs, h)) {
|
||||
info->standard_info.out.delete_pending = 1;
|
||||
info->standard_info.out.nlink--;
|
||||
}
|
||||
@ -388,7 +388,7 @@ NTSTATUS pvfs_qfileinfo(struct ntvfs_module_context *ntvfs,
|
||||
|
||||
case RAW_FILEINFO_ALL_INFO:
|
||||
case RAW_FILEINFO_ALL_INFORMATION:
|
||||
if (pvfs_delete_on_close_set(pvfs, h, NULL, NULL)) {
|
||||
if (pvfs_delete_on_close_set(pvfs, h)) {
|
||||
info->all_info.out.delete_pending = 1;
|
||||
info->all_info.out.nlink--;
|
||||
}
|
||||
@ -407,7 +407,7 @@ NTSTATUS pvfs_qfileinfo(struct ntvfs_module_context *ntvfs,
|
||||
break;
|
||||
|
||||
case RAW_FILEINFO_SMB2_ALL_INFORMATION:
|
||||
if (pvfs_delete_on_close_set(pvfs, h, NULL, NULL)) {
|
||||
if (pvfs_delete_on_close_set(pvfs, h)) {
|
||||
info->all_info2.out.delete_pending = 1;
|
||||
info->all_info2.out.nlink--;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user