chyba v soft updates
Radim Kolar
hsn at netmag.cz
Wed Jan 21 21:00:07 CET 2004
narazil jsem na vazny problem se soft updates. Rename se nechova tak
jak by melo.
1) man rename
The rename() system call guarantees that if to already exists, an
instance of to will always exist, even if the system should crash in the
middle of the operation.
vim zapisuje soubory takto: zapise do zalozniho souboru a ten pak prejmenuje
na originalni jmeno. Nicmene se softupdates tento soubor pri havarii zmizi.
Jan 21 19:46:07 asura fsck: /dev/ad2s4e: UNREF FILE I=23897 OWNER=hsn MODE=1006
00
Jan 21 19:46:07 asura fsck: /dev/ad2s4e: SIZE=135168 MTIME=Jan 21 19:42 2004 (C
LEARED) / vim swapfile /
Jan 21 19:46:07 asura fsck: /dev/ad2s4e: UNREF FILE I=23991 OWNER=hsn MODE=1006
00 / editovany soubor /
Jan 21 19:46:07 asura fsck: /dev/ad2s4e: SIZE=103691 MTIME=Jan 21 19:37 2004 (C
LEARED)
nevim tedy jaky maji tyhle inody refcount (asi 1, kdyby meli 0 fsck by nerval),
ale v adresari je to nove jmeno s inodem 0
proc alespon fsck tyhle soubory nenalinkuje do lost+found? to snad normalne
vzdycky dela, da se k tomu nejak presvedcit? nebo to nedela v background fsck modu?
More information about the Users-l
mailing list