Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754922AbYBNPAV (ORCPT ); Thu, 14 Feb 2008 10:00:21 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751782AbYBNPAJ (ORCPT ); Thu, 14 Feb 2008 10:00:09 -0500 Received: from sovereign.computergmbh.de ([85.214.69.204]:35599 "EHLO sovereign.computergmbh.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751595AbYBNPAH (ORCPT ); Thu, 14 Feb 2008 10:00:07 -0500 Date: Thu, 14 Feb 2008 16:00:06 +0100 (CET) From: Jan Engelhardt To: Andi Kleen cc: Jasper Bryant-Greene , rzryyvzy , linux-kernel@vger.kernel.org Subject: Re: Is there a "blackhole" /dev/null directory? In-Reply-To: Message-ID: References: <20080214093051.7240852AB0E31@trashmail.net> <1202981957.10928.17.camel@phobos.jasper.bg> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1200 Lines: 30 On Feb 14 2008 10:46, Andi Kleen wrote: >Jasper Bryant-Greene writes: >> >> This could be done fairly trivially with FUSE, and IMHO is a good use >> for FUSE because since you're just throwing most data away, performance >> is not a concern. There is a much more interesting 'problem' with a "/dev/null directory". Q: Why would you need such a directory? A: To temporarily fool a program into believing it wrote something. Q: Should all files disappear? (e.g. "unlink after open") A: Maybe not, programs may stat() the file right afterwards and get confused by the "inexistence". Q: What if a program attempts to mkdir /dev/nullmnt/foo to just create a file /dev/nullmnt/foo/barfile? A: /dev/nullmnt/foo must continue to exist or be accepted for a while, or perhaps for eternity. Been there, done that, - http://dev.computergmbh.de/wsvn/misc_kernel/nullfs/trunk/nullfs.c - and hit that wall of unanswerable questions. -- 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/