~ubuntu-branches/ubuntu/utopic/autofs/utopic-proposed

« back to all changes in this revision

Viewing changes to debian/patches/0001-Remove-kernel-mount.nfs-version-checks-on-Debian-Ubu.patch

  • Committer: Package Import Robot
  • Author(s): Dmitrijs Ledkovs
  • Date: 2012-06-20 12:34:50 UTC
  • Revision ID: package-import@ubuntu.com-20120620123450-j5ril7l42dzr8jg0
Tags: 5.0.6-2ubuntu1
* Merge from Debian unstable (LP: #1006509), remaining changes:
  - debian/autofs.upstart - upstart job
  - debian/patches/16group_buffer_size.patch:
    + prevents package to eat the cpu if you have large groups.

* Dropped changes:
  - 17ld.patch, applied in debian as link-daemon-with-lpthread.patch
    and save-hesiod-libs-correctly.patch

* This upload renames autofs5 back to autofs, following debian's name
  change.

* Added patch descriptions/headers to 16group_buffer_size

* debian/patches/0001-Remove-kernel-mount.nfs-version-checks-on-Debian-Ubu.patch:
  Remove kernel & mount.nfs version checks on Debian/Ubuntu. (LP: #1016673)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
From 948aa0ff1f7c698bf0735afd3b38c2c29e5605b8 Mon Sep 17 00:00:00 2001
 
2
From: Dmitrijs Ledkovs <dmitrijs.ledkovs@canonical.com>
 
3
Date: Fri, 22 Jun 2012 18:02:09 +0100
 
4
Subject: [PATCH] Remove kernel & mount.nfs version checks on Debian/Ubuntu.
 
5
 
 
6
Forwarded: no
 
7
Bug-Debian: http://bugs.debian.org/678555
 
8
Bug-Ubuntu: http://pad.lv/1016673
 
9
---
 
10
 daemon/automount.c   |    7 -------
 
11
 include/mounts.h     |    2 --
 
12
 modules/replicated.c |    5 ++---
 
13
 3 files changed, 2 insertions(+), 12 deletions(-)
 
14
 
 
15
diff --git a/daemon/automount.c b/daemon/automount.c
 
16
index 7dea73b..591ad04 100644
 
17
--- a/daemon/automount.c
 
18
+++ b/daemon/automount.c
 
19
@@ -51,9 +51,6 @@ const char *libdir = AUTOFS_LIB_DIR;  /* Location of library modules */
 
20
 const char *mapdir = AUTOFS_MAP_DIR;   /* Location of mount maps */
 
21
 const char *confdir = AUTOFS_CONF_DIR; /* Location of autofs config file */
 
22
 
 
23
-unsigned int nfs_mount_uses_string_options = 0;
 
24
-static struct nfs_mount_vers vers, check = {1, 1, 1};
 
25
-
 
26
 /* autofs fifo name prefix */
 
27
 const char *fifodir = AUTOFS_FIFO_DIR "/autofs.fifo";
 
28
 
 
29
@@ -1281,8 +1278,6 @@ static int do_hup_signal(struct master *master, time_t age)
 
30
        if (status)
 
31
                fatal(status);
 
32
 
 
33
-       nfs_mount_uses_string_options = check_nfs_mount_version(&vers, &check);
 
34
-
 
35
        master_mutex_lock();
 
36
        if (master->reading) {
 
37
                status = pthread_mutex_unlock(&mrc.mutex);
 
38
@@ -1946,8 +1941,6 @@ int main(int argc, char *argv[])
 
39
 
 
40
        defaults_read_config(0);
 
41
 
 
42
-       nfs_mount_uses_string_options = check_nfs_mount_version(&vers, &check);
 
43
-
 
44
        kpkt_len = get_kpkt_len();
 
45
        timeout = defaults_get_timeout();
 
46
        ghost = defaults_get_browse_mode();
 
47
diff --git a/include/mounts.h b/include/mounts.h
 
48
index 1efce64..ba75973 100644
 
49
--- a/include/mounts.h
 
50
+++ b/include/mounts.h
 
51
@@ -82,8 +82,6 @@ struct nfs_mount_vers {
 
52
        unsigned int fix;
 
53
 };
 
54
 unsigned int linux_version_code(void);
 
55
-int check_nfs_mount_version(struct nfs_mount_vers *, struct nfs_mount_vers *);
 
56
-extern unsigned int nfs_mount_uses_string_options;
 
57
 
 
58
 unsigned int query_kproto_ver(void);
 
59
 unsigned int get_kver_major(void);
 
60
diff --git a/modules/replicated.c b/modules/replicated.c
 
61
index 10e1429..049fabd 100644
 
62
--- a/modules/replicated.c
 
63
+++ b/modules/replicated.c
 
64
@@ -964,9 +964,8 @@ int prune_host_list(unsigned logopt, struct host **list,
 
65
         * But also allow the MOUNT_WAIT configuration parameter to override
 
66
         * the probing.
 
67
         */
 
68
-       if (nfs_mount_uses_string_options &&
 
69
-           defaults_get_mount_wait() == -1 &&
 
70
-          (kern_vers = linux_version_code()) > KERNEL_VERSION(2, 6, 22)) {
 
71
+
 
72
+       if (defaults_get_mount_wait() == -1) {
 
73
                if (!this)
 
74
                        return 1;
 
75
        } else {
 
76
-- 
 
77
1.7.10.4
 
78