Lines Matching refs:err
146 smb_error_t err;
204 rc = smb_delete_multiple_files(sr, &err);
206 rc = smb_delete_single_file(sr, &err);
211 smbsr_set_error(sr, &err);
225 * -1 - error, err is populated with error details
228 smb_delete_single_file(smb_request_t *sr, smb_error_t *err)
238 smb_delete_error(err, sr->smb_error.status,
245 smb_delete_error(err, NT_STATUS_OBJECT_NAME_NOT_FOUND,
250 if (smb_delete_check_dosattr(sr, err) != 0) {
255 if (smb_delete_remove_file(sr, err) != 0) {
280 * -1 - error, err is populated with error details
283 smb_delete_multiple_files(smb_request_t *sr, smb_error_t *err)
300 err->status = status;
315 if (smb_delete_check_dosattr(sr, err) != 0) {
317 if (err->status == NT_STATUS_CANNOT_DELETE) {
322 if ((err->status == NT_STATUS_FILE_IS_A_DIRECTORY) &&
328 if (smb_delete_remove_file(sr, err) == 0) {
333 if (err->status == NT_STATUS_OBJECT_NAME_NOT_FOUND) {
348 smbsr_map_errno(rc, err);
353 smb_delete_error(err, NT_STATUS_NO_SUCH_FILE,
398 * -1 - err populated with error details
401 smb_delete_check_dosattr(smb_request_t *sr, smb_error_t *err)
415 smb_delete_error(err, NT_STATUS_INTERNAL_ERROR,
421 smb_delete_error(err, NT_STATUS_FILE_IS_A_DIRECTORY,
427 smb_delete_error(err, NT_STATUS_CANNOT_DELETE,
434 smb_delete_error(err, NT_STATUS_NO_SUCH_FILE,
441 smb_delete_error(err, NT_STATUS_NO_SUCH_FILE,
468 * -1 - error, err populated with error details
471 smb_delete_remove_file(smb_request_t *sr, smb_error_t *err)
506 smb_delete_error(err, NT_STATUS_SHARING_VIOLATION,
530 smb_delete_error(err, NT_STATUS_SHARING_VIOLATION,
536 smb_delete_error(err, NT_STATUS_ACCESS_DENIED,
548 smb_delete_error(err, NT_STATUS_OBJECT_NAME_NOT_FOUND,
551 smbsr_map_errno(rc, err);
608 smb_delete_error(smb_error_t *err,
611 err->status = status;
612 err->errcls = errcls;
613 err->errcode = errcode;