* Project quota behaviour on hardlinks
@ 2012-11-26 7:17 Varun Shastry
2012-11-26 21:50 ` Dave Chinner
0 siblings, 1 reply; 2+ messages in thread
From: Varun Shastry @ 2012-11-26 7:17 UTC (permalink / raw)
To: xfs
[-- Attachment #1.1: Type: text/plain, Size: 449 bytes --]
Hello everyone,
I wanted to know how project quota behaves on hardlinks when created in
different tree structures based on below 2 situations.
* Does it account twice if the file is hard linked in the same parent?
* Does it account twice if the file is hard linked in a different tree
which is also set quota in other project?
Any links to this documentation or direct answer is requested.
And pardon me for previous mail.
Thanks
Varun Shastry
[-- Attachment #1.2: Type: text/html, Size: 493 bytes --]
[-- Attachment #2: Type: text/plain, Size: 121 bytes --]
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Project quota behaviour on hardlinks
2012-11-26 7:17 Project quota behaviour on hardlinks Varun Shastry
@ 2012-11-26 21:50 ` Dave Chinner
0 siblings, 0 replies; 2+ messages in thread
From: Dave Chinner @ 2012-11-26 21:50 UTC (permalink / raw)
To: Varun Shastry; +Cc: xfs
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@fromorbit.com
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-11-26 21:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-26 7:17 Project quota behaviour on hardlinks Varun Shastry
2012-11-26 21:50 ` Dave Chinner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox