Lines Matching refs:result
114 enum file_op_result result) { in file_op_result_to_storage_err() argument
115 switch (result) { in file_op_result_to_storage_err()
131 SS_ERR("%s: Unknown file_op_result: %d\n", __func__, result); in file_op_result_to_storage_err()
199 enum storage_err result; in create_file_handle() local
208 result = session_set_files_count(session, handle + 1); in create_file_handle()
209 if (result != STORAGE_NO_ERROR) in create_file_handle()
210 return result; in create_file_handle()
326 enum storage_err result = in storage_transaction_end() local
328 if (result != STORAGE_NO_ERROR) { in storage_transaction_end()
329 return result; in storage_transaction_end()
366 enum storage_err result = in storage_file_delete() local
368 if (result != STORAGE_NO_ERROR) { in storage_file_delete()
369 return result; in storage_file_delete()
371 result = ensure_active_transaction(session, flags); in storage_file_delete()
372 if (result != STORAGE_NO_ERROR) { in storage_file_delete()
373 return result; in storage_file_delete()
382 result = get_path(path_buf, sizeof(path_buf), &session->uuid, fname, in storage_file_delete()
384 if (result != STORAGE_NO_ERROR) { in storage_file_delete()
385 return result; in storage_file_delete()
450 enum storage_err result = in storage_file_move() local
452 if (result != STORAGE_NO_ERROR) { in storage_file_move()
453 return result; in storage_file_move()
455 result = ensure_active_transaction(session, flags); in storage_file_move()
456 if (result != STORAGE_NO_ERROR) { in storage_file_move()
457 return result; in storage_file_move()
482 result = get_path(path_buf, sizeof(path_buf), &session->uuid, src_name, in storage_file_move()
484 if (result != STORAGE_NO_ERROR) { in storage_file_move()
485 return result; in storage_file_move()
505 result = get_path(path_buf, sizeof(path_buf), &session->uuid, dst_name, in storage_file_move()
507 if (result != STORAGE_NO_ERROR) { in storage_file_move()
511 return result; in storage_file_move()
548 enum storage_err result = in storage_file_open() local
550 if (result != STORAGE_NO_ERROR) { in storage_file_open()
551 return result; in storage_file_open()
553 result = ensure_active_transaction(session, flags); in storage_file_open()
554 if (result != STORAGE_NO_ERROR) { in storage_file_open()
555 return result; in storage_file_open()
564 result = get_path(path_buf, sizeof(path_buf), &session->uuid, fname, in storage_file_open()
566 if (result != STORAGE_NO_ERROR) { in storage_file_open()
567 return result; in storage_file_open()
575 result = create_file_handle(session, &f_handle, &file); in storage_file_open()
576 if (result != STORAGE_NO_ERROR) { in storage_file_open()
577 return result; in storage_file_open()
583 result = file_op_result_to_storage_err(open_result); in storage_file_open()
593 result = STORAGE_ERR_GENERIC; in storage_file_open()
601 result = STORAGE_ERR_GENERIC; in storage_file_open()
613 return result; in storage_file_open()
621 enum storage_err result = in storage_file_close() local
623 if (result != STORAGE_NO_ERROR) { in storage_file_close()
624 return result; in storage_file_close()
626 result = ensure_active_transaction(session, flags); in storage_file_close()
627 if (result != STORAGE_NO_ERROR) { in storage_file_close()
628 return result; in storage_file_close()
667 enum storage_err result = in storage_file_read() local
669 if (result != STORAGE_NO_ERROR) { in storage_file_read()
670 return result; in storage_file_read()
672 result = ensure_active_transaction(session, flags); in storage_file_read()
673 if (result != STORAGE_NO_ERROR) { in storage_file_read()
674 return result; in storage_file_read()
787 enum storage_err result = in storage_file_write() local
789 if (result != STORAGE_NO_ERROR) { in storage_file_write()
790 return result; in storage_file_write()
792 result = ensure_active_transaction(session, flags); in storage_file_write()
793 if (result != STORAGE_NO_ERROR) { in storage_file_write()
794 return result; in storage_file_write()
804 result = storage_create_gap(session, file); in storage_file_write()
805 if (result != STORAGE_NO_ERROR) { in storage_file_write()
821 result = STORAGE_ERR_GENERIC; in storage_file_write()
862 return result; in storage_file_write()
953 enum storage_err result = in storage_file_list() local
955 if (result != STORAGE_NO_ERROR) { in storage_file_list()
956 return result; in storage_file_list()
958 result = ensure_active_transaction(session, flags); in storage_file_list()
959 if (result != STORAGE_NO_ERROR) { in storage_file_list()
960 return result; in storage_file_list()
963 result = in storage_file_list()
965 if (result != STORAGE_NO_ERROR) { in storage_file_list()
986 result = get_path(path_buf, sizeof(path_buf), &session->uuid, in storage_file_list()
988 if (result != STORAGE_NO_ERROR) { in storage_file_list()
989 return result; in storage_file_list()
1025 enum storage_err result = in storage_file_get_size() local
1027 if (result != STORAGE_NO_ERROR) { in storage_file_get_size()
1028 return result; in storage_file_get_size()
1030 result = ensure_active_transaction(session, flags); in storage_file_get_size()
1031 if (result != STORAGE_NO_ERROR) { in storage_file_get_size()
1032 return result; in storage_file_get_size()
1055 enum storage_err result = in storage_file_set_size() local
1057 if (result != STORAGE_NO_ERROR) { in storage_file_set_size()
1058 return result; in storage_file_set_size()
1060 result = ensure_active_transaction(session, flags); in storage_file_set_size()
1061 if (result != STORAGE_NO_ERROR) { in storage_file_set_size()
1062 return result; in storage_file_set_size()
1076 result = storage_create_gap(session, file); in storage_file_set_size()
1077 if (result != STORAGE_NO_ERROR) { in storage_file_set_size()
1078 return result; in storage_file_set_size()