Re: 回复:ext4, quota, projectid: limits without capablity

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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...

>                         2、
> 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



[Index of Archives]     [Reiser Filesystem Development]     [Ceph FS]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite National Park]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Media]

  Powered by Linux