1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-04 08:22:08 +03:00

s3/lib: add update_stat_ex_file_id()

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Ralph Boehme
2019-06-25 14:24:17 +02:00
committed by Jeremy Allison
parent 506ef2761c
commit 295d3501d7
2 changed files with 7 additions and 0 deletions

View File

@ -349,6 +349,12 @@ void update_stat_ex_itime(struct stat_ex *dst,
dst->st_ex_iflags &= ~ST_EX_IFLAG_CALCULATED_ITIME;
}
void update_stat_ex_file_id(struct stat_ex *dst, uint64_t file_id)
{
dst->st_ex_file_id = file_id;
dst->st_ex_iflags &= ~ST_EX_IFLAG_CALCULATED_FILE_ID;
}
void init_stat_ex_from_stat (struct stat_ex *dst,
const struct stat *src,
bool fake_dir_create_times)