From mboxrd@z Thu Jan 1 00:00:00 1970 From: Helge Hafting Subject: Re: The argument for fs assistance in handling archives Date: Fri, 03 Sep 2004 10:28:39 +0200 Message-ID: <41382B37.1000901@hist.no> References: <20040826150202.GE5733@mail.shareable.org> <200408282314.i7SNErYv003270@localhost.localdomain> <20040901200806.GC31934@mail.shareable.org> <20040902002431.GN31934@mail.shareable.org> <413694E6.7010606@slaphack.com> <4136A14E.9010303@slaphack.com> <4136C876.5010806@namesys.com> <4136E0B6.4000705@namesys.com> <4699bb7b04090202121119a57b@mail.gmail.com> <4136E756.8020105@hist.no> <4699bb7b0409020245250922f9@mail.gmail.com> <812032218.20040902120259@tnonline.net> <200409022239.i82MdmnO015327@turing-police.cc.vt.edu> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: list-help: list-unsubscribe: list-post: Errors-To: flx@namesys.com In-Reply-To: <200409022239.i82MdmnO015327@turing-police.cc.vt.edu> List-Id: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: Valdis.Kletnieks@vt.edu Cc: Spam , Oliver Hunt , Hans Reiser , Linus Torvalds , David Masover , Jamie Lokier , Horst von Brand , Adrian Bunk , viro@parcelfarce.linux.theplanet.co.uk, Christoph Hellwig , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Alexander Lyamin aka FLX , ReiserFS List Valdis.Kletnieks@vt.edu wrote: >On Thu, 02 Sep 2004 12:02:59 +0200, Spam said: > > > >> The meta-data should be deleted if it the file is copied or moved to >> a medium that doesn't support it. However a _warning_ may be shown >> to the user if there is risk to loose data. >> >> > >OK... I'll bite. How do you report the warning to the user if you're using >an unenhanced utility to copy a file to a file system that may be lossy? > > Well, _if_ you're using my sort of file-as-dir then you'd expect a plain "cp" to only copy the file. You'd use cp -a to copy the file's subdirectory too. If you're copying to anther filesystem that doesn't support file-as-directory then "cp -a" won't be able to create a directory with the same name as the file, and will do whatever cp does in such a situation. I.e. something like "NAME exists but is not a directory". Helge Hafting