Project

General

Profile

Actions

Feature #63574

open

support setting quota in the format of {K|M}iB along with the K|M, {K|M}i

Added by Dhairya Parmar 6 months ago. Updated 6 months ago.

Status:
New
Priority:
Normal
Category:
-
Target version:
% Done:

0%

Source:
Q/A
Tags:
Backport:
quincy,reef
Reviewed:
Affected Versions:
Pull request ID:

Description

Currently, from CLI to set quota we are supporting values in the format of "K" or "Ki" but not "KiB". However in dashboard many workflows support "KiB" format including setting quota with "KiB", "MiB", etc formats.

To have consistency and ease of use, requesting to support the format "KiB", "MiB" formats too on setting filesystem quota values.

Steps to Reproduce:
1. Create a filesystem volume from CLI
2. Try setting quota using CLI with quota value in the format of "KiB"
3. Op to set quota fails

$ sudo setfattr -n ceph.quota.max_bytes -v 8MiB /mnt/cephfs_fusea8gos0i24d/jwykxz6loj
setfattr: /mnt/cephfs_fusea8gos0i24d/jwykxz6loj: Invalid argument

$ sudo setfattr -n ceph.quota.max_bytes -v 8Mi /mnt/cephfs_fusea8gos0i24d/jwykxz6loj
$ sudo getfattr -n ceph.quota.max_bytes jwykxz6loj
# file: jwykxz6loj
ceph.quota.max_bytes="8388608" 

Actions

Also available in: Atom PDF