From mboxrd@z Thu Jan 1 00:00:00 1970
From: Przemyslaw Marczak
Date: Fri, 20 Feb 2015 11:40:50 +0100
Subject: [U-Boot] [PATCH] fs: ext4 write: return file len on success
In-Reply-To: <1424183512-18290-1-git-send-email-p.marczak@samsung.com>
References: <1424183512-18290-1-git-send-email-p.marczak@samsung.com>
Message-ID: <54E70F32.1080704@samsung.com>
List-Id:
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
To: u-boot@lists.denx.de
Hello,
On 02/17/2015 03:31 PM, Przemyslaw Marczak wrote:
> After rework of the file system API, the size of ext4
> write was missed. This causes printing unreliable write
> size at the end of the file system write operation.
>
> Signed-off-by: Przemyslaw Marczak
> Cc: Sjoerd Simons
> Cc: Lukasz Majewski
> Cc: Simon Glass
> ---
> fs/ext4/ext4_write.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/fs/ext4/ext4_write.c b/fs/ext4/ext4_write.c
> index f7c52cc..fbc4c4b 100644
> --- a/fs/ext4/ext4_write.c
> +++ b/fs/ext4/ext4_write.c
> @@ -1000,10 +1000,13 @@ int ext4_write_file(const char *filename, void *buf, loff_t offset,
> }
> ext4fs_close();
>
> + *actwrite = len;
> +
> return 0;
>
> fail:
> ext4fs_close();
> + *actwrite = 0;
>
> return -1;
> }
>
Tom, this patch is a fix for write command.
Could you please, take it into the master?
Then I will not resend it with other patch set,
because it's actually independent.
Best regards,
--
Przemyslaw Marczak
Samsung R&D Institute Poland
Samsung Electronics
p.marczak at samsung.com