[PATCH] FAT: Support synchronous updates

From: OGAWA Hirofumi
Date: Sat Mar 05 2005 - 19:19:32 EST


[It seems that my first e-mail was lost, so this is re-post. If you
received duplicated email, sorry.]

Hi,

These patches adds the `-o sync' and `-o dirsync' supports to fatfs.
If user specified that option, the fatfs does traditional ordered
updates by using synchronous writes. If compared to before, these
patches will show a improvement of robustness I think.

`-o sync' - writes all buffers out before returning from syscall.
`-o dirsync' - writes the directory's metadata, and unreferencing
operations of data block.

remaining to be done
fat_generic_ioctl(), fat_notify_change(),
ATTR_ARCH of fat_xxx_write[v],
and probably, filling hole in cont_prepare_write(),

NOTE: Since fatfs doesn't have link-count, unfortunately ->rename() is
not safe order at all. It may make the shared blocks, but user
shouldn't lose the data by ->rename().

Please apply.
--
OGAWA Hirofumi <hirofumi@xxxxxxxxxxxxxxxxxx>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/