[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnumed-devel] gnumed.conf gets trashed and deleted by something.
From: |
Karsten Hilbert |
Subject: |
Re: [Gnumed-devel] gnumed.conf gets trashed and deleted by something. |
Date: |
Tue, 3 Sep 2002 02:06:10 +0200 |
User-agent: |
Mutt/1.3.22.1i |
> File "/home/richard/gnumed/gnumed/client/python-common/gmCfg.py", line 261,
> in store
> os.rename(fname, self.cfgName)
> OSError: [Errno 18] Invalid cross-device link
Reason being, BTW, that a rename is implemented as an
efficient change of pointers inside inodes while renaming
files across filesystems would involve actually copying file
content.
The obvious fix is to create the new config file in the same
place as the old one:
1) write new config to ~/.gnumed/gnumed.conf.new overwriting
any gnumed.conf.new that might exist
2) rename ~/.gnumed/gnumed.conf.new to ~/.gnumed/gnumed.conf
which _will_ be on the same filesystem
Karsten
--
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346
Re: [Gnumed-devel] gnumed.conf gets trashed and deleted by something.,
Karsten Hilbert <=