]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFV r302650: 6940 Cannot unlink directories when over quota
authorAndriy Gapon <avg@FreeBSD.org>
Thu, 14 Jul 2016 11:51:01 +0000 (11:51 +0000)
committerAndriy Gapon <avg@FreeBSD.org>
Thu, 14 Jul 2016 11:51:01 +0000 (11:51 +0000)
commit39a6b174914cabe494bdad132de3ad0fc3808f1c
treed836d5d3970c1dc05b0bef97e6b15be91498d97f
parentfe0cc75230c4c07012cbfde9b44241d07c05092a
parent674c8f370b18532ef542d27b9e8186ccfa82a184
MFV r302650: 6940 Cannot unlink directories when over quota

illumos/illumos-gate@99189164df06057fb968ca7be701bb1a0d5da8c9
https://github.com/illumos/illumos-gate/commit/99189164df06057fb968ca7be701bb1a0d5da8c9

https://www.illumos.org/issues/6940
  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.

Reviewed by: Dan McDonald <danmcd@omniti.com>
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Approved by: Robert Mustacchi <rm@joyent.com>
Author: Simon Klinkert <simon.klinkert@gmail.com>
MFC after: 2 weeks
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c