about the _dtype_ parameter
xiaochuan-xu
xiaochuanxv at gmail.com
Mon Jan 12 04:26:59 EST 2009
Hi Artem,
>> I write a temporary file in the ubifs with O_TRUNC flag over and over.
>> I see that all the @dtype variables are equal to 2 not 3.
>> why does this happen?
> Patch:
>
> diff --git a/fs/ubifs/journal.c b/fs/ubifs/journal.c
> index 10ae25b..6a885c5 100644
> --- a/fs/ubifs/journal.c
> +++ b/fs/ubifs/journal.c
> @@ -208,7 +208,7 @@ again:
> offs = 0;
>
> out:
> - err = ubifs_wbuf_seek_nolock(wbuf, lnum, offs, UBI_SHORTTERM);
> + err = ubifs_wbuf_seek_nolock(wbuf, lnum, offs, wbuf->dtype);
> if (err)
> goto out_unlock;
>
I'v applied this patch, but the @dtype variables are still equal to UBI_SHORTTERM (2)! :-(
Are there some more bugs?
Best regards,
Xiaochuan-Xu
More information about the linux-mtd
mailing list