Re: information of statfs

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

 



> 
> 在 2018年1月10日,下午4:08,Amir Goldstein <amir73il@xxxxxxxxx> 写道:
> 
> On Wed, Jan 10, 2018 at 8:17 AM, Chengguang Xu <cgxu519@xxxxxxxxxx> wrote:
>> Hello,
>> 
>> This is just my suggestion, in ovl_statfs() isn’t it better to set
>> below fields(indicating available free resource) to zero when overlayfs
>> doesn’t have upper fs?Because overlayfs can not occupy resource in
>> lower stack fs anymore, I think it can reduce the possibility of
>> misunderstanding from caller.
>> 
> 
> I see the logic in your proposal, but I don't think that behavior is consistent
> w.r.t other fs that are mounted readonly.
> In what way is an overlay mount with no upper different than any fs that
> is mounted readonly?

I think there is nothing different and actually it's our expectation.

> statfs from a readonly fs returns non-zero free blocks even though write is
> not possible.

Yes, that’s right, free blocks do not have direct connection with write
permission in this case. I’m more willing to talk in the point of view
of ownership than write ability.


> The user gets a different error when trying to write (EROFS) and not
> ENOSPC, so where do you see a chance of misunderstanding from caller?

I don’t hope to change write error code as I mentioned above.



Thanks,
Chengguang.

--
To unsubscribe from this list: send the line "unsubscribe linux-unionfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystems Devel]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux