Could these two things be related? Or was it more like an unfortunate coincidence?n@ubuntu:~/.armagetronad/var$ ll
total 512
drwxr-xr-x 2 n n 4096 2012-05-07 12:21 ./
drwxr-xr-x 6 n n 4096 2012-05-13 22:42 ../
-rw-r--r-- 1 n n 944 2012-05-14 13:15 bans.txt
-rw------- 1 n n 24071 2011-11-09 22:46 BUuser.cfg
-rw-r--r-- 1 n n 0 2012-07-28 20:24 chat_history.txt
-rw-r--r-- 1 n n 184 2012-07-28 13:06 console_history.txt
-rw-r--r-- 1 n n 139 2012-05-14 13:15 deaths.txt
-rw-r--r-- 1 n n 308 2012-03-07 17:38 frommaster_8.srv
-rw-r--r-- 1 n n 1543 2012-05-03 16:51 frommaster_9.srv
-rw-r--r-- 1 n n 59059 2012-07-28 20:26 frommaster.srv
-rw-r--r-- 1 n n 27 2011-11-09 22:46 highscores.txt
-rw-r--r-- 1 n n 37 2011-09-26 02:08 highscores.txt.playback
-rw-r--r-- 1 n n 139 2012-05-14 13:15 kills.txt
-rw-r--r-- 1 n n 242920 2012-07-28 20:25 ladderlog.txt
-rw-r--r-- 1 n n 0 2011-11-09 22:46 ladder.txt
-rw-r--r-- 1 n n 0 2011-09-26 02:08 ladder.txt.playback
-rw-r--r-- 1 n n 0 2012-07-28 20:26 master.srv
-rw------- 1 n n 1902 2012-05-07 12:21 n-ctf.cfg
-rw------- 1 n n 1820 2012-07-06 12:03 n-fort.cfg
-rw------- 1 n n 1694 2012-05-07 12:21 n-misc.cfg
-rw------- 1 n n 1861 2012-04-16 01:52 n-misc.cfg.save
-rw-r--r-- 1 n n 57644 2012-05-14 13:15 scorelog.txt
-rw-r--r-- 1 n n 397 2012-05-03 16:50 subcultures.srv
-rw------- 1 n n 0 2012-07-28 20:29 user_3_1_utf8.cfg
-rw------- 1 n n 21985 2011-11-12 19:48 user.cfg
-rw------- 1 n n 24061 2011-11-06 18:19 user.cfg.bu
-rw-r--r-- 1 n n 55 2011-11-13 15:45 won_matches.txt
-rw-r--r-- 1 n n 0 2011-09-26 02:08 won_matches.txt.playback
-rw-r--r-- 1 n n 119 2012-05-14 13:15 won_rounds.txt
-rw-r--r-- 1 n n 0 2011-09-26 02:08 won_rounds.txt.playback
Restore default settings on full disk?
Restore default settings on full disk?
So apparently my disk has been out of space today, i joined on a pickup and everything was ok, when the game ended, i boss-key'ed out and when the new game was ready, i reopened arma. Only to find my settings were gone, but the weirdst part is that the files are still there
There's a difference between knowing your shit, and knowing you're shit. Grammar does matter.
- delinquent
- Match Winner
- Posts: 773
- Joined: Sat Jul 07, 2012 3:07 am
Re: Restore default settings on full disk?
If arma opens temporary files (or copies of the user config files) when the app is running, that might present an issue? When you say out of space, do you mean literally 1kb left, or a few mb?
Re: Restore default settings on full disk?
Related. We simply overwrite the config file on program exit. If anything goes wrong there, the settings are gone. And the way full disks work on Unix make things go wrong; for regular users, disks are full before they're really full; at some point, only root is allowed to write. They don't care that you just freed some kb by deleting the old data, too. The obvious solution to this is to not allow any state where the config data does not exist on disk, for example first write it to a new file, then move that over. Things like that are annoyingly OS dependant, unfortunately.
Re: Restore default settings on full disk?
I was aware of (some of) the problems being out of disk space, i just wasnt sure why ALL my settings were gone, but now that you clarified it, it makes sense. This is probably a hack, but what about writing it to a temporary file, check if its was written properly, delete tmp file and then overwrite the real one?
@delinquent dont recall exactly how much, but it was definitely lower than 50K.
@delinquent dont recall exactly how much, but it was definitely lower than 50K.
There's a difference between knowing your shit, and knowing you're shit. Grammar does matter.