util-linux/include
Stanislav Brabec a1a41597bf losetup: Add support for logical block size
Kernel since 4.14 supports setting of logical block size[1]. It allows to
create loop devices that report logical block size different from 512.

Add support for this feature to losetup.

References:
[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/drivers/block/loop.c?id=89e4fdecb51cf5535867026274bc97de9480ade5

[kzak@redhat.com: - fix loopcxt_get_blocksize()
                  - remove lo_blocksize from loop_info64]

Signed-off-by: Stanislav Brabec <sbrabec@suse.cz>
Cc: Ming Lei <ming.lei@redhat.com>
Cc: Hannes Reinecke <hare@suse.com>
Cc: Omar Sandoval <osandov@fb.com>
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Karel Zak <kzak@redhat.com>
2017-09-27 14:30:02 +02:00
..
Makemodule.am login: add xgetpwnam() 2017-09-18 11:48:56 +02:00
all-io.h include/all-io: read_all() don't retry on EOF 2015-07-20 11:48:09 +02:00
bitops.h include/bitops: avoid fallbacks for more systems 2016-03-08 14:55:38 +01:00
blkdev.h lib: include sys/stat.h for struct stat 2016-03-07 23:17:12 +01:00
c.h hwclock: update usage() 2017-09-05 12:33:19 +02:00
canonicalize.h libmount: try absolute target before canonicalize 2016-04-13 12:29:16 +02:00
carefulputc.h libsmartcols: Corrected JSON escaping 2016-08-02 12:05:05 +02:00
cctype.h lib: add parse-date.y 2017-03-04 10:49:41 -05:00
closestream.h include/closestream: define exit codes 2016-08-16 13:35:06 +02:00
color-names.h misc: Fix various typos 2016-05-31 23:40:21 +02:00
colors.h lib/colors: Fix bug where help text was not being translated. 2017-05-28 13:30:45 +08:00
cpuset.h misc: Fix various typos 2016-05-31 23:40:21 +02:00
crc32.h lib/crc32: prefix public functions 2016-10-19 12:11:59 +02:00
debug.h debug: use const void * for ul_debugobj() 2016-09-21 08:22:35 +02:00
env.h include/env: minor fixes and clean ups 2016-08-16 12:35:57 +02:00
exec_shell.h unshare,nsenter: spawn shell by default 2013-02-14 14:42:35 +01:00
exitcodes.h include/exitcodes: remove mount(8) exit codes 2017-04-27 14:26:45 +02:00
fileutils.h build-sys: add and use openat build conditionals 2016-03-07 15:37:25 +01:00
idcache.h namei: move icache to lib/ 2015-11-27 13:56:01 +01:00
ismounted.h lib: import whole ismounted.c code from e2fsprogs 2009-10-14 01:13:18 +02:00
linux_version.h lib: add linux_version.{c,h} 2007-11-06 02:40:13 +01:00
list.h lib/list: remove LIST_HEAD macro 2017-01-05 11:54:59 +01:00
loopdev.h losetup: Add support for logical block size 2017-09-27 14:30:02 +02:00
mangle.h lib/mangle: cleanup, add unhexmangle 2012-04-26 09:17:44 +02:00
match.h lib,match: split match_fstype() from libmount 2011-11-15 15:17:19 +01:00
mbsalign.h libsmartcols: support multi-line cells based on line breaks 2016-09-06 10:51:25 +02:00
mbsedit.h lib/mbsedit: add simple buffer editor 2017-02-16 13:47:44 +01:00
md5.h build-sys: check HAVE_ definitions with #ifdef [smatch scan] 2011-12-02 18:21:46 +01:00
minix.h libblkid: arch independent minix detection 2013-04-15 15:14:33 +02:00
monotonic.h lib/timer: use separate file for timers 2015-03-06 13:17:20 +01:00
namespace.h Implement support for cgroup namespaces 2016-03-02 17:53:42 -08:00
nls.h libfdisk: fix NLS support 2017-04-25 17:05:09 +02:00
optutils.h optutils.h: don't print non-graph characters 2017-04-18 22:39:05 -04:00
pager.h lib/pager: cleanup and extend API 2016-08-26 12:07:25 +02:00
partx.h build-sys: fix non-blkid compilation 2017-09-19 13:48:52 +02:00
path.h lsmem: fix, using freed memory 2017-06-29 14:04:18 +02:00
pathnames.h rfkill: make programming style to match util-linux project 2017-08-30 20:32:48 +01:00
plymouth-ctrl.h misc: Fix various typos 2016-05-31 23:40:21 +02:00
procutils.h lslocks: use stuff from lib/procutils 2015-11-25 14:17:22 +01:00
pt-bsd.h fdisk: (bsd) write/read PT code cleanup 2013-09-16 16:47:06 +02:00
pt-mbr-partnames.h docs: remove some old history from manpages 2017-06-29 12:56:22 +02:00
pt-mbr.h docs: remove some old history from manpages 2017-06-29 12:56:22 +02:00
pt-sgi.h fdisk: (sgi) fix unsigned integer overflow [AddressSanitizer] 2014-12-19 09:10:48 +00:00
pt-sun.h libfdisk: cleanup sun label checksum usuage 2017-06-13 18:06:36 +02:00
pwdutils.h lib/pwdutils: add xgetlogin() 2017-09-18 11:48:56 +02:00
randutils.h lib/randutils: remove unnecessary function 2016-10-04 16:18:16 +02:00
rpmatch.h rpmatch: use symbolic value when evaluation return codes 2015-02-24 12:42:06 +01:00
setproctitle.h lib: cleanup setproctitle.c 2011-10-26 23:17:15 +02:00
sha1.h libuuid: add support for hash-based UUIDs 2017-09-05 11:26:39 +02:00
statfs_magic.h misc: Fix various typos 2016-05-31 23:40:21 +02:00
strutils.h fdisk: use strutils to trim whitespace from input 2017-08-29 15:26:39 +02:00
strv.h lib/strv: add strv_extendv() 2015-10-01 14:43:05 +02:00
swapheader.h mkswap: remove unnecessary size check 2014-11-07 13:21:05 +01:00
swapprober.h swapon: split swapon-common.c 2014-09-22 13:16:25 +02:00
sysfs.h libblkid: don't use CDROM_GET_CAPABILITY ioctl for DM devices 2017-07-12 14:35:53 +02:00
timer.h lib/timer: use separate file for timers 2015-03-06 13:17:20 +01:00
timeutils.h lib: add parse-date.y 2017-03-04 10:49:41 -05:00
ttyutils.h lib/ttyutils: return terminal lines too 2017-06-12 11:38:38 +02:00
widechar.h include/widechar: add fallback for WEOF 2016-06-03 14:50:48 +02:00
xalloc.h include/xalloc: add err_oom() 2015-07-20 11:48:09 +02:00