| Summary: | mkfifo can cause ext2fs to break sync at shutdown | ||
|---|---|---|---|
| Product: | Base System | Reporter: | Jimmy Olgeni <olgeni> |
| Component: | kern | Assignee: | freebsd-bugs (Nobody) <bugs> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | Unspecified | ||
| Hardware: | Any | ||
| OS: | Any | ||
|
Description
Jimmy Olgeni
2000-11-09 22:10:00 UTC
On Thu, 9 Nov 2000, Jimmy wrote: > >Synopsis: mkfifo can cause ext2fs to break sync at shutdown Syncing at unmount time was actually broken for all types of files. This is now fixed in -current. The commit message was: --- Quick fix for not writing group descriptor group, inode bitmaps or ^^^^^ oops, should be "blocks" block bitmaps before unmount() completes. They were written using bdwrite(), so they were normally written less than 32 seconds after unmount(), but this is too late if the media is removed or the system is rebooted soon after unmount(). sync()ing before unmount() didn't help, because ext2fs uses buggy private caching for these blocks -- it doesn't even bdwrite() them until they are uncached or the filesystem is unmounted. sync()ing after unmount() didn't help, because sync() only applies to (vnodes for) mounted filesystems. --- > >How-To-Repeat: Thanks for the detailed instructions. > >Fix: > > Running shutdown with the media still in the drive helps, but I didn't > try to insert a different disk and see what gets written. FreeBSD now retries until shutdown after write errors, so inserting the same disk is a safe workaround, but inserting a different disk will clobber that disk. Bruce State Changed From-To: open->closed Fixed in: rev.1.6 in -current rev.1.5.2.1 in RELENG_4 rev.1.4.2.1 in RELENG_3 |