Project

General

Profile

Bug #46844

ceph-fuse: writing data can exceed quota when mount with ceph-fuse

Added by Yao Ning 6 months ago. Updated 5 months ago.

Status:
Won't Fix
Priority:
Normal
Assignee:
Category:
Correctness/Safety
Target version:
-
% Done:

0%

Source:
Community (dev)
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
fs
Component(FS):
ceph-fuse
Labels (FS):
Manila, quotas
Pull request ID:
Crash signature:

Description

setfattr -n ceph.quota.max_bytes -v 1073741824 /opt/cephfs/test1/

use ceph-fuse mount the dir /cephfs/test1/ to /mnt/

[root@tempest-testshareshrinkcephfs-server-1583097679 ~]# sh -c "dd bs=64M count=20 if=/dev/urandom of=/mnt/t1 conv=fsync iflag=fullblock"
20+0 records in
20+0 records out
1342177280 bytes (1.3 GB) copied, 47.4257 s, 28.3 MB/s
[root@tempest-testshareshrinkcephfs-server-1583097679 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 220M 0 220M 0% /dev
tmpfs 244M 0 244M 0% /dev/shm
tmpfs 244M 8.6M 235M 4% /run
tmpfs 244M 0 244M 0% /sys/fs/cgroup
/dev/vda1 20G 1.3G 19G 7% /
tmpfs 49M 0 49M 0% /run/user/0
ceph-fuse 1.0G 1.0G 0 100% /mnt
[root@tempest-testshareshrinkcephfs-server-1583097679 ~]# du -sh /mnt/*
1.3G /mnt/t1

we expect error return here like below:

[root@tempest-testshareshrinkcephfs-server-1583097679 ~]# sh -c "dd bs=64M count=1 if=/dev/urandom of=/mnt/t2 conv=fsync iflag=fullblock"
dd: error writing ‘/mnt/t2’: Disk quota exceeded
1+0 records in
0+0 records out
0 bytes (0 B) copied, 0.51842 s, 0.0 kB/s

History

#1 Updated by Patrick Donnelly 5 months ago

  • Status changed from New to Won't Fix

Also available in: Atom PDF