Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1763325AbXJNAMo (ORCPT ); Sat, 13 Oct 2007 20:12:44 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753886AbXJNAMg (ORCPT ); Sat, 13 Oct 2007 20:12:36 -0400 Received: from mx2.redhat.com ([66.187.237.31]:35809 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753747AbXJNAMf (ORCPT ); Sat, 13 Oct 2007 20:12:35 -0400 Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: <20071013181137.GA9051@thunk.org> References: <20071013181137.GA9051@thunk.org> <20071012160519.15119.69608.stgit@warthog.procyon.org.uk> To: Theodore Tso Cc: dhowells@redhat.com, viro@ftp.linux.org.uk, kwc@citi.umich.edu, Trond.Myklebust@netapp.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH 00/52] Introduce credential record X-Mailer: MH-E 8.0.3; nmh 1.2-20070115cvs; GNU Emacs 22.1.50 Date: Sat, 13 Oct 2007 22:46:15 +0100 Message-ID: <22130.1192311975@redhat.com> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 761 Lines: 19 Theodore Tso wrote: > I'm going to ask a stupid question, and I probably missed something > in the 52 patches, but.... I see how the credential is used to do > access checks, but why does the credentials record need to passed all > the way into block allocator? What is it used for there? Ext2, 3 & 4 use it to determine whether someone has the right to use the reserved space according to whether their UID/GID match those in the superblock. See ext3_has_free_blocks() for an example. David - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/