this is only used in the quotactl syscall which is not currently
exposed in pve and only affected non-default mappings
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
pub fn map_from(&self, id: u64) -> Option<u64> {
for entry in self.0.iter() {
if entry.ns <= id && entry.ns + entry.range > id {
pub fn map_from(&self, id: u64) -> Option<u64> {
for entry in self.0.iter() {
if entry.ns <= id && entry.ns + entry.range > id {
- return Some(id + entry.host);
+ return Some(entry.host + id - entry.ns);