UPSTREAM: fs: Create a common fs_devread for ext4/reiserfs/zfsThe ext4, reiserfs and zfs filesystems all have their own implementationof the same function, *_devread. Generalize this function into
UPSTREAM: fs: Create a common fs_devread for ext4/reiserfs/zfsThe ext4, reiserfs and zfs filesystems all have their own implementationof the same function, *_devread. Generalize this function into fs_devreadand put the code into fs/fs_internal.c.Change-Id: Ib558f0f40ba1520f4974ca5cbd31265573b156c9Signed-off-by: Marek Behun <marek.behun@nic.cz>[trini: Move fs/fs_internal.o hunk to the end of fs/Makefile as allcases need it]Signed-off-by: Tom Rini <trini@konsulko.com>Signed-off-by: Kever Yang <kever.yang@rock-chips.com>(cherry picked from commit 5994e8b6432d1c6df1cad44771f02054dba893ff)
show more ...
dm: Drop the block_dev_desc_t typedefUse 'struct' instead of a typdef. Also since 'struct block_dev_desc' is longand causes 80-column violations, rename it to struct blk_desc.Signed-off-by: Simo
dm: Drop the block_dev_desc_t typedefUse 'struct' instead of a typdef. Also since 'struct block_dev_desc' is longand causes 80-column violations, rename it to struct blk_desc.Signed-off-by: Simon Glass <sjg@chromium.org>Reviewed-by: Bin Meng <bmeng.cn@gmail.com>Tested-by: Stephen Warren <swarren@nvidia.com>
block: pass block dev not num to read/write/erase()This will allow the implementation to make use of data in the block_devstructure beyond the base device number. This will be useful so that eMMC
block: pass block dev not num to read/write/erase()This will allow the implementation to make use of data in the block_devstructure beyond the base device number. This will be useful so that eMMCblock devices can encompass the HW partition ID rather than treating thisout-of-band. Equally, the existence of the priv field is crying out forthis patch to exist.Signed-off-by: Stephen Warren <swarren@nvidia.com>Reviewed-by: Tom Rini <trini@konsulko.com>
ZFS: Clean up cppcheck warnings where relevant, leaked memory etcIn a message from Wolfgang Denk highlighting warnings from cppcheck,the patch will address those that are correctly diagnosed. Some
ZFS: Clean up cppcheck warnings where relevant, leaked memory etcIn a message from Wolfgang Denk highlighting warnings from cppcheck,the patch will address those that are correctly diagnosed. Some arefalse-positives:> [fs/zfs/zfs.c:937]: (error) Memory leak: ldmu_read() allocates "l" if successful, so error-case should not freeit.> [fs/zfs/zfs.c:1141]: (error) Memory leak: dnbufdmu_read() allocates "dnbuf" if successful, so error-case should notfree it.> [fs/zfs/zfs.c:1372]: (error) Memory leak: ospzio_read() allocates "osp" if successful, so error-case shouldnot free it.> [fs/zfs/zfs.c:1726]: (error) Memory leak: nvlistint_zfs_fetch_nvlist() allocates "nvlist" if successful, so error-caseshould not free it.Signed-off-by: Jorgen Lundman <lundman@lundman.net>
cosmetic: replace MIN, MAX with min, maxThe macro MIN, MAX is defined as the aliase of min, max,respectively.Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
fs: descend into sub directories when it is necessarySigned-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
fs: convert makefiles to Kbuild styleSigned-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Add GPL-2.0+ SPDX-License-Identifier to source filesSigned-off-by: Wolfgang Denk <wd@denx.de>[trini: Fixup common/cmd_io.c]Signed-off-by: Tom Rini <trini@ti.com>
fs: zfs: fix illegal use of fpthe upcoming sunxi (allwinner a10/a13) platform enables zfsby default, and using linaro's hf -msoft-float makes the buildfail because this u64 division.Signed-off-
fs: zfs: fix illegal use of fpthe upcoming sunxi (allwinner a10/a13) platform enables zfsby default, and using linaro's hf -msoft-float makes the buildfail because this u64 division.Signed-off-by: Alejandro Mery <amery@geeks.cl>Acked-by: Stefan Roese <sr@denx.de>
ZFS: Fix compile warning in fs/zfs/zfs.c (GCC 4.6.4 from ELDK 5.2.1)This patch fixes the following compile warning:zfs.c:2006:1: warning: 'zfs_label' defined but not used [-Wunused-function]zfs.c
ZFS: Fix compile warning in fs/zfs/zfs.c (GCC 4.6.4 from ELDK 5.2.1)This patch fixes the following compile warning:zfs.c:2006:1: warning: 'zfs_label' defined but not used [-Wunused-function]zfs.c:2029:1: warning: 'zfs_uuid' defined but not used [-Wunused-function]Signed-off-by: Stefan Roese <sr@denx.de>Cc: Jorgen Lundman <lundman@lundman.net>
cmd_zfs: use common get_device_and_partition functionConvert zfsload and zfsls to use common device and partition parsingfunction. With the common function "dev:part" can come from theenvironment
cmd_zfs: use common get_device_and_partition functionConvert zfsload and zfsls to use common device and partition parsingfunction. With the common function "dev:part" can come from theenvironment and a '-' can be used in that case.Signed-off-by: Rob Herring <rob.herring@calxeda.com>
zfs: Add ZFS filesystem supportU-Boot port is based on sources forked from GRUB-0.97 by Sun in 2004,which can be found here:http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/grub/grub
zfs: Add ZFS filesystem supportU-Boot port is based on sources forked from GRUB-0.97 by Sun in 2004,which can be found here:http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/grub/grub-0.97/stage2/zfs-include/zfs.hReleased by Sun for GRUB under the license: * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version.GRUB official releases include ZFS in version:ftp://alpha.gnu.org/gnu/grub/grub-1.99~rc1.tar.gzAnd patched against GRUB Bazaar repository for ashift fixes (4KB HDDs)more conveniently found at github:https://github.com/pendor/grub-zfs/commit/e7b6ef3ac3b9685ac4c394c897b1d4221b7381f1Signed-off-by: Jorgen Lundman <lundman@lundman.net>