]> err.no Git - util-linux/commitdiff
Merge commit 'origin/master'
authorLaMont Jones <lamont@debian.org>
Mon, 15 Dec 2008 14:31:01 +0000 (07:31 -0700)
committerLaMont Jones <lamont@debian.org>
Mon, 15 Dec 2008 14:31:01 +0000 (07:31 -0700)
Conflicts:

mount/mount.8

1  2 
fdisk/cfdisk.8
hwclock/hwclock.c
mount/Makefile.am
mount/lomount.c
mount/mount.8
mount/mount.c
mount/swapon.c

diff --cc fdisk/cfdisk.8
Simple merge
Simple merge
index 3592eb2a355af17e803688d8b3e2fca5dbf267ae,7ff528ca5855bb8192bd3f90c19e94f901b7019a..aa9f20085682333276a2459b46b6724457b7b64d
@@@ -24,10 -24,11 +24,11 @@@ umount_SOURCES = umount.c $(mount_commo
  umount_CFLAGS = $(SUID_CFLAGS) $(AM_CFLAGS)
  umount_LDFLAGS = $(SUID_LDFLAGS) $(AM_LDFLAGS)
  
- swapon_SOURCES = swapon.c swap_constants.h $(utils_common)
+ swapon_SOURCES = swapon.c swap_constants.h $(utils_common) \
+       ../lib/linux_version.c ../lib/blkdev.c
  
  losetup_SOURCES = lomount.c sundries.c xmalloc.c realpath.c \
 -      loop.h lomount.h xmalloc.h sundries.h realpath.h
 +      loop.h lomount.h xmalloc.h sundries.h realpath.h rmd160.c
  losetup_CPPFLAGS = -DMAIN $(AM_CPPFLAGS)
  
  mount_LDADD = $(LDADD_common)
diff --cc mount/lomount.c
index a6ae55ffd32682218a72087f77072fadd40a62cc,5675eac0a7e89054b8ee58030cbe3f8e71dbaf68..7371c4ea15d3dcfd3dd5b4fb67f24047d47f56c8
@@@ -646,10 -645,15 +646,16 @@@ digits_only(const char *s) 
        return 1;
  }
  
+ /*
+  * return codes:
+  *    0       - success
+  *    1       - error
+  *    2       - error (EBUSY)
+  */
  int
  set_loop(const char *device, const char *file, unsigned long long offset,
 -       unsigned long long sizelimit, const char *encryption, int pfd, int *options) {
 +       unsigned long long sizelimit, const char *encryption, int pfd, int *options,
 +       int keysz, int hash_pass) {
        struct loop_info64 loopinfo64;
        int fd, ffd, mode, i;
        char *pass;
@@@ -1102,13 -1025,11 +1112,13 @@@ main(int argc, char **argv) 
        else {
                if (passfd && sscanf(passfd, "%d", &pfd) != 1)
                        usage();
 +              if (keysize && sscanf(keysize,"%d",&keysz) != 1)
 +                      usage();
                do {
 -                      res = set_loop(device, file, off, slimit, encryption, pfd, &ro);
 +                      res = set_loop(device, file, off, slimit, encryption, pfd, &ro, keysz, hash_pass);
                        if (res == 2 && find) {
                                if (verbose)
-                                       printf("stolen loop=%s...trying again\n",
+                                       printf(_("stolen loop=%s...trying again\n"),
                                                device);
                                free(device);
                                if (!(device = find_unused_loop_device()))
diff --cc mount/mount.8
index 5fb027d839a7ab0105fe64655eef768f662a5660,8905599ee22e2507477a7832d4c5eca0af251375..3a777466f185025d842372907233ad533f80f29e
@@@ -630,16 -761,11 +761,21 @@@ This option implies the option
  (unless overridden by subsequent options, as in the option line
  .BR group,dev,suid ).
  .TP
 +.B encryption
 +Specifies an encryption algorithm to use.  Used in conjunction with the
 +.BR loop " option."
 +.TP
 +.B keybits
 +Specifies the key size to use for an encryption algorithm. Used in conjunction
 +with the 
 +.BR loop " and " encryption " options."
 +.B nofail
 +Do not report errors for this device if it does not exist.
+ .B iversion
+ Every time the inode is modified, the i_version field will be incremented.
+ .TP
+ .B noiversion
+ Do not increment the i_version inode field.
  .TP
  .B mand
  Allow mandatory locks on this filesystem. See
diff --cc mount/mount.c
Simple merge
diff --cc mount/swapon.c
Simple merge