From: Dmitry Monakhov Subject: [RFC] subtypes namig rules for stack-filesystem Date: Thu, 28 Oct 2010 12:35:05 +0400 Message-ID: <871v7an29y.fsf@dmon-lap.sw.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: ecryptfs-devel@lists.launchpad.net, Miklos Szeredi , Erez Zadok , vaurora@redhat.com To: linux-fsdevel@vger.kernel.org Return-path: Received: from mail-ew0-f46.google.com ([209.85.215.46]:63369 "EHLO mail-ew0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933065Ab0J1IfV (ORCPT ); Thu, 28 Oct 2010 04:35:21 -0400 Received: by ewy7 with SMTP id 7so1321996ewy.19 for ; Thu, 28 Oct 2010 01:35:19 -0700 (PDT) Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Hello, Stack-fs becomes popular now, and may be it is time to clarify basic interface rules. Some st-fs provide transparent access (or access with expected behavior) to lower file-systems interfaces (ioctl, quotas, etc). But there is not convenient way to determine lower fs type. As soon as i understand there are tree convenient ways to determine fs-type: /etc/mtab, /proc/mounts and statfs(2) We can easily clarify things for /etc/mtab and /proc/mounts by using subtype name for that. Initially subtype name was introduced for fuse-fs and used as a extension name, and stack-fs may use it in similar way. * If stack-filesystem support lower-fs interface it may declare it by showing appropriate fs-type in subtype name. Statfs(2) interface: IMHO there are two possible ways 1) Add subtype filed to statfs(2) 2) Add char string to statfs(2) which contains codes for ABI which filesystem provides(trim,falloc,delalloc, quota, etc...). Off course this requires changes in all filesystem, but may helps us to create standard for ABI declaration.