Project

General

Profile

Bug #6940

Cannot unlink directories when over quota

Added by Simon Klinkert over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
zfs - Zettabyte File System
Start date:
2016-04-29
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage

Description

Similar to #6334, but this time with empty directories:

$ zfs create tank/quota
$ zfs set quota=10M tank/quota
$ zfs snapshot tank/quota@snap1
$ zfs set mountpoint=/mnt/tank/quota tank/quota
$ mkdir /mnt/tank/quota/dir # create an empty directory
$ mkfile 11M /mnt/tank/quota/11M
/mnt/tank/quota/11M: initialized 9830400 of 11534336 bytes: Disc quota exceeded
$ rmdir /mnt/tank/quota/dir # now unlink the empty directory
rmdir: directory "/mnt/tank/quota/dir": Disc quota exceeded

From user perspective, I would expect that ZFS is always able to remove files and directories even when the quota is exceeded.

History

#1

Updated by Electric Monk over 3 years ago

  • % Done changed from 0 to 100
  • Status changed from New to Closed

git commit 99189164df06057fb968ca7be701bb1a0d5da8c9

commit  99189164df06057fb968ca7be701bb1a0d5da8c9
Author: Simon Klinkert <simon.klinkert@gmail.com>
Date:   2016-06-05T17:58:33.000Z

    6940 Cannot unlink directories when over quota
    Reviewed by: Dan McDonald <danmcd@omniti.com>
    Reviewed by: Matthew Ahrens <mahrens@delphix.com>
    Approved by: Robert Mustacchi <rm@joyent.com>

Also available in: Atom PDF