From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_00,TO_NO_BRKTS_FROM_MSSP autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,24a59fbc07128ff8 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-05-10 06:16:36 PST Path: newsfeed.google.com!newsfeed.stanford.edu!newsfeed.mesh.ad.jp!newsranger.com!www.newsranger.com!not-for-mail Newsgroups: comp.lang.ada From: Ted Dennison References: <9cvdav$8q61@news.cis.okstate.edu> <9da0p9$7hu2@news.cis.okstate.edu> Subject: Re: rename missing in Text_IO Message-ID: X-Abuse-Info: When contacting newsranger.com regarding abuse please X-Abuse-Info: forward the entire news article including headers or X-Abuse-Info: else we will not be able to process your request X-Complaints-To: abuse@newsranger.com NNTP-Posting-Date: Thu, 10 May 2001 09:16:07 EDT Organization: http://www.newsranger.com Date: Thu, 10 May 2001 13:16:07 GMT Xref: newsfeed.google.com comp.lang.ada:7460 Date: 2001-05-10T13:16:07+00:00 List-Id: In article , Fraser Wilson says... >The problem is that a rename or move on the same disk is significantly >cheaper than one that crosses disks. It's also a much safer >operation. I think the implementation detail line is quite fuzzy >here. > >More generally, the destination might not even be a disk filesystem; >it could be a remote ftp site or /proc on Linux. Does a move/rename >even make sense in those cases? I think its probably OK to leave that on the user's head. After all, they're the one who *asked* for a move to that location. We already have a similar issue with Open. It may or may not work if another program or another task has already opened the file (and it may depend on the mode they opened it with). All that is OS dependant. Also, the user could try to Create a file on "/proc" as it stands today, so "Move" would introduce no new issues there either. The fact is that the user of file I/O operations already has to understand a fair bit about their OS to have any hope of it working properly. --- T.E.D. homepage - http://www.telepath.com/dennison/Ted/TED.html home email - mailto:dennison@telepath.com