From mboxrd@z Thu Jan 1 00:00:00 1970 From: luc deschenaux Subject: opening files Date: Thu, 06 Nov 2003 15:01:05 +0100 Sender: linux-fsdevel-owner@vger.kernel.org Message-ID: <3FAA5421.5000809@freesurf.ch> Reply-To: luc.deschenaux@freesurf.ch Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from freesurfmta05.sunrise.ch ([194.230.0.18]:1725 "EHLO freesurfmail.sunrise.ch") by vger.kernel.org with ESMTP id S263660AbTKFOLt (ORCPT ); Thu, 6 Nov 2003 09:11:49 -0500 Received: from freesurf.ch (62.167.44.156) by freesurfmail.sunrise.ch (7.0.020.2) id 3FA7906F00089C4C for linux-fsdevel@vger.kernel.org; Thu, 6 Nov 2003 15:11:48 +0100 To: linux-fsdevel@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org maybe somebody did it already, knows where i need to do it, or has something to say about it; so while i start looking how to implement the functionality described below, i post a message here When booting from a livecd, the empty directory tree is duplicated in a tmpfs partition and all the cdrom files are linked in it If a process need to open a file with write permission you have to remove the link in ramdisk and replace it with the real file from the cd at user level I'm looking to patch the kernel or libraries so that when a process try to open such linked file with write permission, the kernel or library replace the link in ramdisk with the real file from cd before opening it and returning the file descriptor instead of a "permission denied" error. infos and suggestions welcome regards, Luc