Go to file
Karel Zak ba3809b012 losetup: add a new option -s
The losetup provides an -f option to discover an unused loop device.  As
implemented, it is racy. The problem is that -f prints the loop device
to stdout only when used standalone.  This means a script has to do:

 lodev=$(losetup -f)
 losetup $lodev $filename

which is racy if another script may be running.

This patch add a new option '-s'. The '-s' option prints device name
if the -f option and a file argument are present. For example:

 lodev=$(losetup -f -s $filename)

Signed-off-by: Karel Zak <kzak@redhat.com>
2007-06-18 15:44:02 +02:00
config build-sys: remove -fomit-frame-pointer 2007-05-16 11:58:22 +02:00
disk-utils mkfs.cramfs: cleanup HAVE_ macros usage 2007-06-14 13:55:37 +02:00
example.files raw: add file with udev rule example 2007-01-26 20:06:38 +01:00
fdisk fdisk: add GPT detection code 2007-06-05 10:40:14 +02:00
getopt getopt: remove old unused files 2007-06-14 14:50:14 +02:00
hwclock build-sys: do not use wildcards in EXTRA_DIST 2007-05-16 11:43:30 +02:00
include build-sys: use dist_noinst_HEADERS in include/Makefile.am 2007-05-16 11:43:31 +02:00
lib build-sys: do not build convenience libraries in lib/ 2007-05-16 11:43:29 +02:00
licenses Imported from util-linux-2.9v tarball. 2006-12-07 00:25:39 +01:00
login-utils build-sys: move -D flags to *_CPPFLAGS 2007-05-16 11:43:30 +02:00
misc-utils mcookie: remove non-linux code 2007-06-14 14:43:41 +02:00
mount losetup: add a new option -s 2007-06-18 15:44:02 +02:00
partx partx: add man pages for addpart, delpart and partx 2007-02-09 19:15:23 +01:00
po mount: kill mount_guess_rootdev 2007-05-16 13:22:39 +02:00
schedutils schedutils: define SCHED_BATCH when compile with old glibc 2007-04-11 23:18:08 +02:00
sys-utils sys-utils: add note about obsolete ramsize option to rdev.8 2007-06-05 10:40:26 +02:00
tests tests: add mount /dev/symlink test 2007-06-15 21:32:45 +02:00
text-utils text-utils: fix the more command compilation against termcap 2007-06-05 23:35:42 +02:00
tools tools: add codecheck-config that checks for {HAVE,ENABLE}_ orphans 2007-06-15 10:17:51 +02:00
.gitignore build-sys: amend .gitignore 2007-05-16 11:43:30 +02:00
AUTHORS docs: update AUTHORS file 2007-06-12 16:59:03 +02:00
COPYING Imported from util-linux-2.13-pre1 tarball. 2006-12-07 00:26:54 +01:00
DEPRECATED docs: add the DEPRECATED file 2007-04-03 22:02:20 +02:00
INSTALL Imported from util-linux-2.13-pre1 tarball. 2006-12-07 00:26:54 +01:00
Makefile.am tools: add codecheck-config that checks for {HAVE,ENABLE}_ orphans 2007-06-15 10:17:51 +02:00
NEWS build-sys: rename to -ng, change maintainer name 2007-01-04 13:44:06 +01:00
README build-sys: fix the example configure call in README 2007-05-16 11:43:29 +02:00
README.devel docs: fix info about devel/master branchs 2007-04-25 15:23:21 +02:00
TODO docs: clean up TODO file and add a new resuest for 2.14 2007-06-05 23:35:42 +02:00
autogen.sh build-sys: fix the final message of autogen.sh 2007-05-08 00:39:13 +02:00
configure.ac build-sys: fix HAVE_NCURSES 2007-06-14 13:32:32 +02:00

README

                          utils-linux-ng
           (fork of util-linux, based on version 2.13-pre7)

         util-linux is a random collection of Linux utilities


MAILING LIST:

      E-MAIL: util-linux-ng@vger.kernel.org
      URL:    http://vger.kernel.org/vger-lists.html#util-linux-ng


NEUTRALITY:

      The stuff in util-linux-ng should be rather distribution-neutral.
      No RPMs/DEBs/... are provided - get yours from your distributor.



VERSION SCHEMA:

      Standard releases:

          <major>.<minor>.<maint>

             major = fatal and deep changes
             minor = typical release with new fetures
             maint = maintenance releases; bug fixes only
       
      Development releases:

         <major>.<minor><suffix>

             suffix = "devel" or "rc<N>"


COMPILATION:

      See the INSTALL file for more details.

      Notes:
            * use SUID_CFLAGS and SUID_LDFLAGS when you want to define special
              compiler options for typical suid programs, for example:

                  ./configure SUID_CFLAGS="-fpie" SUID_LDFLAGS="-pie"

              This feature is currently supported for chfn, chsh, newgrp,
              write, mount, and umount.