Package: mount
Version: 2.12r-15
Severity: whishlist
Tags: patch

Hi,

In the util-linux source package there is a file called

        debian/patches/30swsusp-resume.dpatch

It is however not applied, is there any reason to not apply it? 
I couldn't find a reason in the changelog, the only mention of it I could
find was:

        * Include swap-suspend patch from Ubuntu.

If you are going to apply it could you please add support for userspace
software suspend? A patch on 30swsusp-resume.dpatch (ouch that looks ugly!)
follows below.



--- 30swsusp-resume.dpatch      2007-01-09 15:53:05.000000000 +0100
+++ 30swsusp-resume.dpatch++    2007-01-09 15:54:14.000000000 +0100
@@ -10,7 +10,7 @@
 diff -urNad --exclude=CVS --exclude=.svn ./mount/get_label_uuid.c 
/tmp/dpep-work.5ak7Cm/util-linux/mount/get_label_uuid.c
 --- ./mount/get_label_uuid.c   2004-12-22 08:44:32.000000000 -0700
 +++ /tmp/dpep-work.5ak7Cm/util-linux/mount/get_label_uuid.c    2005-12-06 
11:54:33.000000000 -0700
-@@ -93,7 +93,24 @@
+@@ -93,7 +93,25 @@
        }
        return 0;
  }
@@ -25,7 +25,8 @@
 +      if (lseek(fd, 0, SEEK_SET) == 0
 +          && read(fd, buf, n) == n
 +          && (strncmp(buf+n-10, "S1SUSPEND", 9)==0 ||
-+                  strncmp(buf+n-10, "S2SUSPEND", 9)==0)
++                  strncmp(buf+n-10, "S2SUSPEND", 9)==0 ||
++                  strncmp(buf+n-10, "ULSUSPEND", 9)==0)
 +          && p->version == 1) {
 +              store_uuid(uuid, p->uuid);
 +              store_label(label, p->volume_name, 16);

Attachment: signature.asc
Description: PGP signature

Reply via email to