mirror of
https://git.proxmox.com/git/proxmox-backup
synced 2025-08-08 03:30:38 +00:00
datastore: write chunk: comment utimesat params
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
2858912686
commit
1aae684ba6
@ -215,10 +215,12 @@ impl ChunkStore {
|
|||||||
const UTIME_OMIT: i64 = (1 << 30) - 2;
|
const UTIME_OMIT: i64 = (1 << 30) - 2;
|
||||||
|
|
||||||
let times: [libc::timespec; 2] = [
|
let times: [libc::timespec; 2] = [
|
||||||
|
// access time -> update to now
|
||||||
libc::timespec {
|
libc::timespec {
|
||||||
tv_sec: 0,
|
tv_sec: 0,
|
||||||
tv_nsec: UTIME_NOW,
|
tv_nsec: UTIME_NOW,
|
||||||
},
|
},
|
||||||
|
// modification time -> keep as is
|
||||||
libc::timespec {
|
libc::timespec {
|
||||||
tv_sec: 0,
|
tv_sec: 0,
|
||||||
tv_nsec: UTIME_OMIT,
|
tv_nsec: UTIME_OMIT,
|
||||||
|
Loading…
Reference in New Issue
Block a user