~ubuntu-branches/debian/squeeze/devicekit-disks/squeeze

« back to all changes in this revision

Viewing changes to debian/patches/00git-lv-nopolicy.patch

  • Committer: Bazaar Package Importer
  • Author(s): Michael Biebl, Martin Pitt, Michael Biebl
  • Date: 2009-11-05 14:26:06 UTC
  • mfrom: (1.2.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20091105142606-gv7df6uk7s7voro1
Tags: 009-1
[ Martin Pitt ]
* New upstream release.
* 08-dont-probe-dm-devices.patch: Update for new release.
* Drop 07-media-player-icon.patch as well, it was included upstream in 008.
* debian/devicekit-disks.postinst: Update udev after installation to pick up
  (changes of) our udev rules. (Closes: #548758)
* debian/control: Add missing udev dependency.
* debian/control: Add dependencies to various file system tools which DK-D
  uses to implement its functionality:
  - Recommends: dosfstools, mtools, ntfs-3g (the more popular ones)
  - Suggests: xfsprogs, reiserfsprogs, mdadm, cryptsetup
* Add 00git-lv-nopolicy.patch: Fix LVM LVs to have NOPOLICY=1 again.
  (Accepted into upstream trunk.)

[ Michael Biebl ]
* debian/patches/08-dont-probe-dm-devices.patch
  - Skip probing dm devices (using devkit-disks-part-id) for which DM_HIDE
    is set. (Closes: #545032)
  - Instead of checking for DKD_DM_STATE, test if DM_NAME is setup.
* Add debian/README.source which refers to the quilt documentation.
* debian/control: Add Recommends on ntfsprogs for proper NTFS support.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
commit 351618d08270a0832db3c282082207e6dfa24845
 
2
Author: Martin Pitt <martin.pitt@ubuntu.com>
 
3
Date:   Tue Nov 3 21:50:25 2009 +0100
 
4
 
 
5
    Bug 24885 — LVM LVs now have NOPOLICY=0
 
6
    
 
7
    Commit a95d3 caused the NOPOLICY rules get cut short for LVs. Move the NOPOLICY
 
8
    check close to the top, since its (1) very cheap, and (2) very generic, i. e.
 
9
    rules further down might want to tweak it for special cases.
 
10
    
 
11
    Signed-off-by: David Zeuthen <davidz@redhat.com>
 
12
 
 
13
diff --git a/data/95-devkit-disks.rules b/data/95-devkit-disks.rules
 
14
index cff8277..7f210ad 100644
 
15
--- a/data/95-devkit-disks.rules
 
16
+++ b/data/95-devkit-disks.rules
 
17
@@ -6,6 +6,17 @@ ACTION!="add|change", GOTO="devkit_disks_end"
 
18
 SUBSYSTEM!="block", GOTO="devkit_disks_end"
 
19
 KERNEL=="loop*|ram*", GOTO="devkit_disks_end"
 
20
 
 
21
+# Mark devices that shouldn't be automounted / autoassembled etc.
 
22
+#
 
23
+# Deny all, then punch holes for what looks like physical drives
 
24
+# (TODO: this heuristic might need some work)
 
25
+#
 
26
+
 
27
+ENV{DKD_PRESENTATION_NOPOLICY}="1"
 
28
+KERNEL=="sd*|hd*|sr*|mmcblk*|mspblk*", ENV{DKD_PRESENTATION_NOPOLICY}="0"
 
29
+
 
30
+##############################################################################################################
 
31
+
 
32
 # we only care about change events on device-mapper
 
33
 # devices - never touch the device on add events
 
34
 KERNEL=="dm-*", ACTION!="change", GOTO="devkit_disks_end"
 
35
@@ -152,15 +163,5 @@ ENV{ID_FS_TYPE}=="ntfs|vfat", \
 
36
 
 
37
 ##############################################################################################################
 
38
 
 
39
-# Mark devices that shouldn't be automounted / autoassembled etc.
 
40
-#
 
41
-# Deny all, then punch holes for what looks like physical drives
 
42
-# (TODO: this heuristic might need some work)
 
43
-#
 
44
-
 
45
-ENV{DKD_PRESENTATION_NOPOLICY}="1"
 
46
-KERNEL=="sd*|hd*|sr*|mmcblk*|mspblk*", ENV{DKD_PRESENTATION_NOPOLICY}="0"
 
47
-
 
48
-##############################################################################################################
 
49
 
 
50
 LABEL="devkit_disks_end"