Project quota behaviour on hardlinks
Dave Chinner
david at fromorbit.com
Mon Nov 26 15:50:32 CST 2012
On Mon, Nov 26, 2012 at 12:47:08PM +0530, Varun Shastry wrote:
> Hello everyone,
>
> I wanted to know how project quota behaves on hardlinks when created in
> different tree structures based on below 2 situations.
Test it and see.
> * Does it account twice if the file is hard linked in the same parent?
Hard links are only accounted once to the owner of the inode.
> * Does it account twice if the file is hard linked in a different tree
> which is also set quota in other project?
You can't hard link across directory tree quota boundaries - you'll
get EXDEV. Similarly for rename across directory tree boundaries.
Cheers,
Dave.
--
Dave Chinner
david at fromorbit.com
More information about the xfs
mailing list