xfs
[Top] [All Lists]

Re: XFS_IOC_SET_RESBLKS and quota

To: Steve Lord <lord@xxxxxxx>
Subject: Re: XFS_IOC_SET_RESBLKS and quota
From: Andi Kleen <ak@xxxxxxx>
Date: Mon, 21 May 2001 17:21:36 +0200
Cc: Andi Kleen <ak@xxxxxxx>, linux-xfs@xxxxxxxxxxx
In-reply-to: <200105211512.f4LFCHi01994@xxxxxxxxxxxxxxxxxxxx>; from lord@xxxxxxx on Mon, May 21, 2001 at 10:12:17AM -0500
References: <ak@xxxxxxx> <200105211512.f4LFCHi01994@xxxxxxxxxxxxxxxxxxxx>
Sender: owner-linux-xfs@xxxxxxxxxxx
User-agent: Mutt/1.2.5i
On Mon, May 21, 2001 at 10:12:17AM -0500, Steve Lord wrote:
> Hmmm, that call looks like it needs some more security on it, it was
> added for data migration (dmapi), and has nothing to do with actual file data.
> Basically data migration has a problem in that it needs to be able to
> migrate a file out to tape from a completely full filesystem, moving
> the data involves writing an extended attribute to say where it has
> gone, and this can require space. So this call was added to steal some
> space from the superblock and it is only supposed to be used for a
> special user space application. I think it needs at least this added
> to it:
> 
>                 if (!capable(CAP_SYS_ADMIN))
>                         return -EPERM;

Thanks for the clarification (although I guess a CAP_DMAPI would be better)

-Andi

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