9
0
Fork 0
barebox/fs
Andrey Smirnov 8f8f14f9b6 fs: smhfs: Fix return value of truncate()
Returning -ENOSYS as a result of truncate() breaks ability to write to
semihosting host's filesystem, so change the return value to 0. This
shouldn't cause any problems since all of the funcionlaity of
truncate() should is already handled by 'open' (via O_TRUNC) and
'write' (will automatically grow the file size when writing)
automatically

Unfortunately this was missed in original commit that introduced
semihosting

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-11-09 07:17:57 +01:00
..
cramfs treewide: fix 'new blank line at EOF' formatting error 2015-07-02 09:39:58 +02:00
ext4 drop <stddef.h> includes 2015-07-23 16:46:04 +02:00
fat treewide: fix 'new blank line at EOF' formatting error 2015-07-02 09:39:58 +02:00
ubifs introduce strerrorp 2015-09-23 17:12:44 +02:00
Kconfig ARM: Add support for semihosting 2015-10-30 08:06:03 +01:00
Makefile ARM: Add support for semihosting 2015-10-30 08:06:03 +01:00
bpkfs.c fs: rename inode member of struct filep to priv 2015-03-09 08:06:41 +01:00
devfs-core.c fs: devfs: Allow mount path in cdev_open 2015-10-15 08:56:21 +02:00
devfs.c fs: devfs: Allow mounting only on /dev/ 2015-10-15 08:56:21 +02:00
efi.c fs: efi: use xstrdup_* when appropriate 2015-07-27 07:23:19 +02:00
efivarfs.c fs: efivars: read the attributes on the second get_variable() 2015-07-27 07:23:20 +02:00
fs.c fs: pass path directly to cdev_open 2015-10-15 08:56:29 +02:00
nfs.c fs/nfs.c: use SUNRPC_PORT remote port by default 2015-07-20 07:46:54 +02:00
omap4_usbbootfs.c fs: rename inode member of struct filep to priv 2015-03-09 08:06:41 +01:00
parseopt.c linux/kernel.h: rename USHORT_MAX, SHORT_MAX, SHORT_MIN 2015-01-21 14:58:07 +01:00
parseopt.h nfs: parse nfsport and mount port from file system options 2014-02-10 09:02:21 +01:00
ramfs.c fs: syntax fix in ramfs.c 2015-10-01 08:38:36 +02:00
smhfs.c fs: smhfs: Fix return value of truncate() 2015-11-09 07:17:57 +01:00
tftp.c fs/tftp.c: drop unused server_port variable 2015-07-20 07:46:54 +02:00
uimagefs.c fs: rename inode member of struct filep to priv 2015-03-09 08:06:41 +01:00