]> git.proxmox.com Git - proxmox-backup.git/commit
datastore: add tuning option for chunk order
authorDominik Csapak <d.csapak@proxmox.com>
Tue, 22 Feb 2022 14:57:49 +0000 (15:57 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 23 Feb 2022 08:06:03 +0000 (09:06 +0100)
commitfef61684b447dfb18eaea3cefc2cca315fb14d02
tree1c2154f1202b5f861f214163a303e80e86e4f8fb
parent118f8589a9119e41ff36b93431dc1a853b3ef13a
datastore: add tuning option for chunk order

currently, we sort chunks by inode when verifying or backing up to tape.
we get the inode# by stat'ing each chunk, which may be more expensive
than the gains of reading the chunks in order

Since that is highly dependent on the underlying storage of the datastore,
introduce a tuning option  so that the admin can tune that behaviour
for each datastore.

The default stays the same (sorting by inode)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
pbs-api-types/src/datastore.rs
pbs-datastore/src/datastore.rs
src/api2/config/datastore.rs