All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] fs: ext4 write: return file len on success
@ 2015-02-17 14:31 Przemyslaw Marczak
  2015-02-17 22:38 ` Stephen Warren
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Przemyslaw Marczak @ 2015-02-17 14:31 UTC (permalink / raw)
  To: u-boot

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 <p.marczak@samsung.com>
Cc: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
Cc: Lukasz Majewski <l.majewski@samsung.com>
Cc: Simon Glass <sjg@chromium.org>
---
 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;
 }
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [U-Boot] [PATCH] fs: ext4 write: return file len on success
  2015-02-17 14:31 [U-Boot] [PATCH] fs: ext4 write: return file len on success Przemyslaw Marczak
@ 2015-02-17 22:38 ` Stephen Warren
  2015-02-20 10:40 ` Przemyslaw Marczak
  2015-03-06 15:46 ` [U-Boot] " Tom Rini
  2 siblings, 0 replies; 4+ messages in thread
From: Stephen Warren @ 2015-02-17 22:38 UTC (permalink / raw)
  To: u-boot

On 02/17/2015 07:31 AM, 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.

Tested-by: Stephen Warren <swarren@nvidia.com>

This fixes the issue I mentioned in the DFU-related thread.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot] [PATCH] fs: ext4 write: return file len on success
  2015-02-17 14:31 [U-Boot] [PATCH] fs: ext4 write: return file len on success Przemyslaw Marczak
  2015-02-17 22:38 ` Stephen Warren
@ 2015-02-20 10:40 ` Przemyslaw Marczak
  2015-03-06 15:46 ` [U-Boot] " Tom Rini
  2 siblings, 0 replies; 4+ messages in thread
From: Przemyslaw Marczak @ 2015-02-20 10:40 UTC (permalink / raw)
  To: u-boot

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 <p.marczak@samsung.com>
> Cc: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
> Cc: Lukasz Majewski <l.majewski@samsung.com>
> Cc: Simon Glass <sjg@chromium.org>
> ---
>   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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot] fs: ext4 write: return file len on success
  2015-02-17 14:31 [U-Boot] [PATCH] fs: ext4 write: return file len on success Przemyslaw Marczak
  2015-02-17 22:38 ` Stephen Warren
  2015-02-20 10:40 ` Przemyslaw Marczak
@ 2015-03-06 15:46 ` Tom Rini
  2 siblings, 0 replies; 4+ messages in thread
From: Tom Rini @ 2015-03-06 15:46 UTC (permalink / raw)
  To: u-boot

On Tue, Feb 17, 2015 at 03:31:52PM +0100, 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 <p.marczak@samsung.com>
> Cc: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
> Cc: Lukasz Majewski <l.majewski@samsung.com>
> Cc: Simon Glass <sjg@chromium.org>
> Tested-by: Stephen Warren <swarren@nvidia.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150306/86d46c1e/attachment.sig>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-03-06 15:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-17 14:31 [U-Boot] [PATCH] fs: ext4 write: return file len on success Przemyslaw Marczak
2015-02-17 22:38 ` Stephen Warren
2015-02-20 10:40 ` Przemyslaw Marczak
2015-03-06 15:46 ` [U-Boot] " Tom Rini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.