xfs
[Top] [All Lists]

Re: Project quota behaviour on hardlinks

To: Varun Shastry <vrn.shastry@xxxxxxxxx>
Subject: Re: Project quota behaviour on hardlinks
From: Dave Chinner <david@xxxxxxxxxxxxx>
Date: Tue, 27 Nov 2012 08:50:32 +1100
Cc: xfs@xxxxxxxxxxx
In-reply-to: <CAB+GMR8yU4LaU7EwXboKQLDsGGD0N6EuDT4CgxYLpVFPsROKXg@xxxxxxxxxxxxxx>
References: <CAB+GMR8yU4LaU7EwXboKQLDsGGD0N6EuDT4CgxYLpVFPsROKXg@xxxxxxxxxxxxxx>
User-agent: Mutt/1.5.21 (2010-09-15)
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@xxxxxxxxxxxxx

<Prev in Thread] Current Thread [Next in Thread>