Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932211Ab0FYRw1 (ORCPT ); Fri, 25 Jun 2010 13:52:27 -0400 Received: from mail-iw0-f174.google.com ([209.85.214.174]:45218 "EHLO mail-iw0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756604Ab0FYRw0 convert rfc822-to-8bit (ORCPT ); Fri, 25 Jun 2010 13:52:26 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=cZRDsySW0dRtYS2+tKepU5ub03pkTxavtxeI0UXTSuvioxrb2jW5Aqaoe01UezTtwU zK8Q+AnCm6RQnUmNUK6tDyRffp6pvFCVLK7NeI0RTP1ysPrNTqqjj9mReYEC/surAx94 DjnIP9gRBUQfTe5lV5mT032XOMJ5o9k8ZPpNs= MIME-Version: 1.0 In-Reply-To: <1A529206-98C4-4A88-A2CA-18522D4D631D@dilger.ca> References: <20100624131455.GA10441@laptop> <20100625040156.GQ10441@laptop> <1A529206-98C4-4A88-A2CA-18522D4D631D@dilger.ca> From: Ulrich Drepper Date: Fri, 25 Jun 2010 10:52:05 -0700 Message-ID: Subject: Re: [rfc] new stat*fs-like syscall? To: Andreas Dilger Cc: Nick Piggin , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Al Viro , Ulrich Drepper , Linus Torvalds Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1093 Lines: 18 On Fri, Jun 25, 2010 at 10:47, Andreas Dilger wrote: > SUSv2 only defines the flags ST_RDONLY and ST_NOSUID, and this is also what is documented in the Linux/BSD/OSX statvfs(3) man page.  According to the Solaris statvfs(3) man page I found it additionally defines: > > ST_NOTRUNC   0x04    /* does not truncate file names longer than >                        NAME_MAX */ glibc supports many more flags. SuS of course has to restrict itself, there are not that many flags which are portable and available on all the platforms. Look at /usr/include/bits/statvfs.h for what has to be supported and the values to use. If the values the kernel will use differ I'd have to (unnecessarily) convert the values. If some values are missing/not supported I still would have to use /proc/mounts and nothing is gained. -- 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/