Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1946252AbbEOVYT (ORCPT ); Fri, 15 May 2015 17:24:19 -0400 Received: from mail-ig0-f178.google.com ([209.85.213.178]:35423 "EHLO mail-ig0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1946151AbbEOVX7 (ORCPT ); Fri, 15 May 2015 17:23:59 -0400 From: Zach Brown To: Sage Weil , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-api@vger.kernel.org Subject: [PATCH RFC v2 0/2] O_NOCMTIME protected by generic mount option Date: Fri, 15 May 2015 14:23:46 -0700 Message-Id: <1431725028-24071-1-git-send-email-zab@zabbo.net> X-Mailer: git-send-email 2.1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1327 Lines: 28 Here's a current draft of what is now the O_NOCMTIME series. It implements the frequent suggestion to gate unprivileged O_NOCMTIME use with a mount option. This method has the advantage of being entirely runtime. There's no persistence that'd require updating all the tools that deal with each file system's format. It's also requested by writers as they open. Writes to the file that know nothing of O_NOCMTIME will behave as usual. Another suggested method is to use inode attributes: require root to set +nocmtime on a dir and inherit it down subdirs to new files. This nicely solves the unprivilieged use problem without having to fiddle with mount options but it requires touching all systems that support it and would prevent cmtime updates on all writes to the inode. I have a patch series that starts on this but haven't taken it very far. Sage is working on spinning up some hardware to test the various dirty inode avoidance methods at load and should have numbers soon. That'll tell us if lazytime isn't good enough and if any of this is worth the trouble. - z -- 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/