Opened 16 years ago

Last modified 16 years ago

#2781 closed bug

files not written to disk (BFS) after crash (KDL) — at Version 4

Reported by: rossi Owned by: axeld
Priority: blocker Milestone: R1/alpha1
Component: System/Kernel Version: R1/pre-alpha1
Keywords: Cc:
Blocked By: Blocking:
Platform: x86

Description (last modified by jackburton)

After a crash (KDL), files copied to the drive in that session are lost after the reboot following the crash.

However apparently this doesn't affect all files, I have the slight (not proven) feeling, that certain files, which have been touched after the copy operation actually survive the crash.

All this happens on hrev27764, gcc2 build with gcc4 libs installed.

Btw, should I reinitialize the file system to be on the safe side that there are no other hidden not visible issues with the file system?

Change History (4)

comment:1 by jackburton, 16 years ago

I think I have seen the same issue on multiple machines.

comment:2 by mmlr, 16 years ago

This is not a filesystem inconsistency however. If the filesystem was inconsistent it would for example have corrupted nodes, files with inconsistent block mappings or attributes, indexes and the like. BFS does journaling to avoid exactly that. But this journaling doesn't include data journaling. If you have files that weren't written back yet at all, they will be lost obviously as they only ever existed in your memory. If you have files that were in the process of being written back, they might be missing as well, because the journaling might have removed an incompletely written node, exactly do avoid an inconsistent state. If the metadata was written back, the file might be present, but still the data it contains might be complete junk if it has not yet been written back. Still, the filesystem itself should consistent, from a meta data point of view, in all of these cases. You can force writing back data by using the sync command to avoid such situations. If you do that and still loose data that should have been written before the call, that'd be a bug. But if you loose data that isn't guaranteed to be written back (either by an explicit sync or by the implicit sync on unmount/shutdown) that isn't necessarily a bug.

comment:3 by jackburton, 16 years ago

Right. But after a couple of minutes the files should be written back to disk anyway. I guess this is a regression (Luposian bug, again? AAAAAAAAAAAAAAARGH!!!), since this wasn't happening some time ago.

comment:4 by jackburton, 16 years ago

Description: modified (diff)
Summary: file system (BFS) inconsistent after crash (KDL)files not written to disk (BFS) after crash (KDL)
Note: See TracTickets for help on using tickets.