Re: [PATCH] FAT: Support synchronous update

From: Andrew Morton
Date: Sun Mar 06 2005 - 20:14:52 EST


OGAWA Hirofumi <hirofumi@xxxxxxxxxxxxxxxxxx> wrote:
>
> 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.
>
>
> If you test this, please use attached dosfstools. This is fixing
> several bugs of dosfstools. And "2/29" patch from hpa adds new ioctl,
> the attached archive is also including the commands for testing it.
> --
> OGAWA Hirofumi <hirofumi@xxxxxxxxxxxxxxxxxx>
>
>

OK. This email was way too big for linux-kernel, so nobody saw it.

I put the modified fatfsprogs at
http://www.zip.com.au/~akpm/linux/patches/stuff/fatfsprogs.tar.bz2 and
updated the changlog to mention that.

Is there an official place where people should go to download the modified
fatfsprogs?

-
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/