sslug-teknik team mailing list archive
-
sslug-teknik team
-
Mailing list archive
-
Message #38399
Re: SV: SV: Undelete
Andreas Overgaard <anov@xxxxxx> writes:
> Hvad snakker du om du basere det sku da bare på 'mv' og får den til at gemme
Det er også præcis det jeg siger. Det er sådan mv traditionelt virker
når den ikke skal krydse filsystemgrænser, hvilket giver en række
problemer, da der så netop skal kopieres data (hvormed man kan få en
fejl ligende den jeg skrev)
Manualsiden fra FreeBSD 4.3-RELEASE siger:
As the rename(2) call does not work across file systems, mv uses
cp(1) and rm(1) to accomplish the move. The effect is equivalent to:
rm -f destination_path && \
cp -pRP source_file destination && \
rm -rf source_file
Manualsiden fra Seventh Edition siger desuden:
BUGS
If file1 and file2 lie on different file systems, mv must copy the
file and delete the original. In this case the owner name becomes
that of the copying process and any linking relationship with other
files is lost.
Og der står sikkert noget tilsvarende i noget af GNUs dokumentation,
men info sutter.
--
hash-bang-slash-bin-slash-bash
References