summaryrefslogtreecommitdiffstats
path: root/sys-utils/losetup.8
Commit message (Collapse)AuthorAgeFilesLines
* losetup: man page has repeating words [make checkmans]Karel Zak2019-04-241-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* losetup: properly use --sector-size when create a new deviceKarel Zak2019-01-221-1/+3
| | | | | | | | | | | | | The --partscan functionality depends on sector size. Make sure sector size is set before we force kernel to scan the device for partitions. For example: losetup -f loopfile --sector-size 4KiB --partscan --show where 'loopfile' contains GPT with 4096 sectors. Reported-by: Jeffrey Ferreira <jeffpferreira@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* losetup: add reference to suffixes for --{sizelimit,offset}Karel Zak2018-08-081-2/+4
| | | | | Reported-by: Milan Broz <gmazyland@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* losetup: add --output-all optionSami Kerola2018-05-031-0/+3
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* losetup: rename to --sector-size and LOG-SECKarel Zak2017-10-021-9/+7Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* losetup: Add support for logical block sizeStanislav Brabec2017-09-271-0/+3
| | | | | | | | | | | | | | | | | | | | 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>
* losetup: add info about lazy detach to manpageKarel Zak2017-08-101-1/+4
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* misc: POSIX usage dd, regarding unit suffixesRuediger Meier2017-06-141-1/+1
| | | | | | | | | In POSIX we have only 'b' and 'k' (case-sensitive). In the real work, OSX was the only system I've found which does not understand capital 'K'. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* losetup.8: Reorder options documentationFrederick Grose2017-04-041-43/+38Star
| | | | | | | | | | | | Reorder options to match onboard help and group functionally. Include some missing optional arguments. [kzak@redhat.com: - don't include available columns in man page, - add comments to the usage() - fix order in usage() - fix typo in usage()] Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: replace FTP by HTTPS in kernel.org URLsSébastien Helleu2016-12-191-1/+1
| | | | | | | The links to ftp://ftp.kernel.org/ are replaced by https://www.kernel.org/. Signed-off-by: Karel Zak <kzak@redhat.com>
* losetup: add --nooverlap optionsKarel Zak2016-08-171-0/+11
| | | | | | | | | | | | | | | | | | | | | This patch introduces overlap detections and loop devices re-use for losetup(8). We already support this feature for mount(8) where it's enabled by default (because we mount filesystems and it's always mistake to share the same filesystem between more loop devices). Stanislav has suggested to enable this feature also for losetup by default. I'm not sure about it, IMHO it's better to keep losetup(8) simple and stupid by default, and inform users about possible problems and solutions in the man page. The feature forces losetup to scan all loop devices always when new one is requested. This maybe disadvantage (especially when we use control-loop to avoid /sys or /dev scans) on system with huge number of loop devices. Co-Author: Stanislav Brabec <sbrabec@suse.cz> Signed-off-by: Karel Zak <kzak@redhat.com>
* man pages: fix spacing between man page name & section numberMike Frysinger2016-05-201-1/+1
| | | | | | Most have standardized correctly, but fix a few latent ones. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* losetup: correct some formatting in the man pageBenno Schulenberg2016-03-081-6/+8
| | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* losetup: clean up --direct-ioKarel Zak2015-11-191-0/+4
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* losetup: add --jsonKarel Zak2015-06-051-1/+4
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: restore minus symbols in long optsJ William Piggott2015-01-211-3/+3
| | | | Signed-off-by: J William Piggott <elseifthen@gmx.com>
* lib/loopdev: replace custom DBG() with include/debug.hKarel Zak2014-11-041-0/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* losetup: improve man page -D docsKarel Zak2014-10-071-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: bring eight more man pages closer to standard formattingBenno Schulenberg2014-07-211-61/+79
| | | | | | | | | | Also, for chcpu, the options -c, -d, -e and -g are mutually exclusive, and for the mode argument the option -p is not optional. For ldattach, use the standard options separator ", " instead of the unusual " | ". And add the missing --version to several of the pages. Besides, improve the wording and the consistency of the spacing. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* losetup: tiny change to usage()Karel Zak2014-04-031-2/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* losetup, mount: remove --pass-fd at allKarel Zak2014-01-061-2/+0Star
| | | | | | | | The option is unsupported since v2.23, let's cleanup man pages and code to remove it at all. Reported-by: "Dale R. Worley" <worley@alum.mit.edu> Signed-off-by: Karel Zak <kzak@redhat.com>
* Fix various typosYuri Chornoivan2013-09-281-1/+1
|
* losetup: add --raw and --noheadingsKarel Zak2013-05-131-2/+8
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: add TB to list of supported suffixesKarel Zak2013-03-181-1/+1
| | | | | Reported-by: Lukas Czerner <lczerner@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: mark old losetup output format as DEPRECATEDKarel Zak2012-11-121-1/+4
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* losetup: add --list and --output optionOndrej Oprala2012-11-121-2/+8
| | | | | | | | | | | | | | | | The --list --all is the default output: # losetup NAME SIZE OFFSET AUTOCLEAR RO BACK-FILE /dev/loop0 0 0 0 0 /home/fs-images/swap.img /dev/loop1 0 100 0 0 /home/fs-images/disk.img [kzak@redhat.com: - default to --all if no device specified, - cleanup column names (add BACK- prefix) - add MAJ:MIN to of the loopdev device] Signed-off-by: Ondrej Oprala <ooprala@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* fix bold style of man page referencesMike Frysinger2012-10-091-1/+1
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* mount: losetup: remove obsolete encryption supportLudwig Nussel2012-09-111-27/+2Star
| | | | | | | | | | | | | | | kernel cryptoloop is deprecated since ages and support for cryptoloop in util-linux is incomplete/broken. - no password hashing - last 8 bit of key are always set to zero - no binary keys possible (stops reading key at \n and \0) In the past some Distros added the above features with patches. So remove cryptoloop support from util-linux completely to make sure people won't try using it. Signed-off-by: Ludwig Nussel <ludwig.nussel@suse.de> Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: clarify KiB vs. KB in man pagesBernhard Voelker2012-03-301-3/+4
| | | | | | | | | Update the man pages of blkid, wipefs, fallocate, fstrim, losetup and hexdump to clarify the suffixes for the numerical values of the offset and size/length arguments regarding KiB=1024 vs KB=1000. Also mention the ZiB/YiB and ZB/YB suffixes supported by strtosize(). Signed-off-by: Bernhard Voelker <mail@bernhard-voelker.de>
* losetup: add --detach-all to the list of optionsPetr Uzel2012-02-241-0/+2
| | | | Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
* losetup: add note about non-root users to losetup.8Karel Zak2012-01-111-1/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* losetup: add --partscan optionKarel Zak2012-01-091-1/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* losetup: cleanup man pageKarel Zak2011-12-221-57/+37Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* losetup: move to sys-utils directoryKarel Zak2011-12-201-0/+188
Now losetup(8) is independent on mount/ stuff at all. Signed-off-by: Karel Zak <kzak@redhat.com>