On 2018年01月06日 09:34, Karsai, Gabor wrote: > I created a subvolume on a btrfs, set a limit and the quota is enforced - > dumping too much data into the subvolume results in a 'quota exceeded' > message (from dd, for example). But when I am trying to get netlink socket > notifications, nothing arrives on the socket (I am using pyroute2 which is > supposedly able to receive disk quota notifications) > > $ uname -a > Linux riaps-dev 4.10.0-42-generic #46~16.04.1-Ubuntu SMP Mon Dec 4 15:57:59 > UTC 2017 x86_64 x86_64 x86_64 GNU/Linux > > btrfs: whatever Ubuntu 16.04 has > > Kconfig: > CONFIG_QUOTA_NETLINK_INTERFACE=y
This quota netlink support is for generic quota (implemented by fs/quota/*), while btrfs is not using the generic quota for several reasons (mostly related to subvolume quota). So that's why quota netlink gets nothing to report. Thanks, Qu > > Any advice would be appreciated. > Thanks, > -- Gabor Karsai > > > -- > To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in > the body of a message to majord...@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html >
signature.asc
Description: OpenPGP digital signature