Re: ååïext4, quota, projectid: limits without capablity

From: Jan Kara
Date: Wed Jan 10 2018 - 06:59:35 EST


Hello Wang!

On Wed 10-01-18 19:01:03, Yuanliang Wang wrote:
> Thank you for your enthusiastic response
>
> the reason is :
> 1ãI saw
> that ignore_hardlimit allows root to exceed the limitïso should projid
> be consistent ?

Generally, it should be consistent. ignore_hardlimit is a different thing -
you want root to be able to exceed storage space limit but you don't want
root to be able to make information inconsistent...

>
> In our scenario we will use hardlink to share data between container and host, and between containers
>
> +------------------+
> | |
> | |
> +-------------+ | |
> | | | |
> | | | container |
> | +--------------> | |
> | | | file A |
> | | | |
> | | | |
> | | | |
> | | +------------------+
> | |
> | |
> | | +------------------+
> | | | |
> | | | |
> | | | |
> | | | |
> | | | container |
> | host file A +---------------> | |
> | | | file A |
> | | | |
> | | | |
> | | | |
> | | | |
> | | +------------------+
> | |
> | | +------------------+
> | | | |
> | | | |
> | | | |
> | | | |
> | +-------------> | container |
> | | | |
> | | | |
> | | | file A |
> | | | |
> +-------------+ | |
> | |
> +------------------+

I see but then which project ID does the 'file A' have? Project ID used for
neither of the containers is logical... Maybe the file is accessible only
read-only in your setup and so you don't care much about quotas for that
particular files but still it may be confusing that the file is not
accounted to the quota of each particular container. That's the reason why
project ID consistence is enforced.

Honza
--
Jan Kara <jack@xxxxxxxx>
SUSE Labs, CR