diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2011-03-22 22:02:18 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2011-03-22 22:02:18 +0000 |
commit | 4a49afaeeb733b8702c9c9dfcd31e5a79bd74b88 (patch) | |
tree | 49f4ccc331f1c46db54ce878a529b0a38f13e9aa /sys-fs/udisks/files | |
parent | unused desc (diff) | |
download | gentoo-2-4a49afaeeb733b8702c9c9dfcd31e5a79bd74b88.tar.gz gentoo-2-4a49afaeeb733b8702c9c9dfcd31e5a79bd74b88.tar.bz2 gentoo-2-4a49afaeeb733b8702c9c9dfcd31e5a79bd74b88.zip |
old
(Portage version: 2.2.0_alpha28/cvs/Linux x86_64)
Diffstat (limited to 'sys-fs/udisks/files')
-rw-r--r-- | sys-fs/udisks/files/udisks-1.0.1-linux-headers-2.6.36.patch | 42 | ||||
-rw-r--r-- | sys-fs/udisks/files/udisks-1.0.1-lvm2_api_support.patch | 106 |
2 files changed, 0 insertions, 148 deletions
diff --git a/sys-fs/udisks/files/udisks-1.0.1-linux-headers-2.6.36.patch b/sys-fs/udisks/files/udisks-1.0.1-linux-headers-2.6.36.patch deleted file mode 100644 index 4097a72b12f7..000000000000 --- a/sys-fs/udisks/files/udisks-1.0.1-linux-headers-2.6.36.patch +++ /dev/null @@ -1,42 +0,0 @@ -http://cgit.freedesktop.org/udisks/commit/?id=1f97cf90f30a6184486cee8877494eb828a34da4 - ---- src/device.c -+++ src/device.c -@@ -36,6 +36,7 @@ - #include <fcntl.h> - #include <pwd.h> - #include <grp.h> -+#include <stdint.h> - #include <linux/fs.h> - #include <sys/ioctl.h> - #include <linux/cdrom.h> ---- src/helpers/job-drive-benchmark.c -+++ src/helpers/job-drive-benchmark.c -@@ -28,6 +28,7 @@ - #include <sys/types.h> - #include <sys/stat.h> - #include <sys/ioctl.h> -+#include <stdint.h> - #include <linux/fs.h> - #include <fcntl.h> - #include <string.h> ---- src/helpers/job-shared.h -+++ src/helpers/job-shared.h -@@ -30,6 +30,7 @@ - #include <sys/stat.h> - #include <fcntl.h> - #include <sys/ioctl.h> -+#include <stdint.h> - #include <linux/fs.h> - - #include <glib.h> ---- src/helpers/partutil.c -+++ src/helpers/partutil.c -@@ -34,6 +34,7 @@ - #include <errno.h> - #include <sys/ioctl.h> - #include <ctype.h> -+#include <stdint.h> - #include <linux/fs.h> - - #include <linux/hdreg.h> diff --git a/sys-fs/udisks/files/udisks-1.0.1-lvm2_api_support.patch b/sys-fs/udisks/files/udisks-1.0.1-lvm2_api_support.patch deleted file mode 100644 index be81abbed26a..000000000000 --- a/sys-fs/udisks/files/udisks-1.0.1-lvm2_api_support.patch +++ /dev/null @@ -1,106 +0,0 @@ -From 2b2fcf80841972b70ad695a5a1ed74487d4fd37a Mon Sep 17 00:00:00 2001 -From: David Zeuthen <davidz@redhat.com> -Date: Wed, 19 May 2010 17:01:31 +0000 -Subject: Update to latest LVM2 API - -See - - http://lists.freedesktop.org/archives/devkit-devel/2010-April/000783.html ---- -diff --git a/src/probers/udisks-lvm-pv-export.c b/src/probers/udisks-lvm-pv-export.c -index 5675fb8..ee6d8ed 100644 ---- a/src/probers/udisks-lvm-pv-export.c -+++ b/src/probers/udisks-lvm-pv-export.c -@@ -47,7 +47,7 @@ find_vg_for_pv_uuid (lvm_t lvm_ctx, - struct lvm_pv_list *pv_list; - dm_list_iterate_items (pv_list, pvs) - { -- char *uuid; -+ const char *uuid; - pv_t pv = pv_list->pv; - - uuid = lvm_pv_get_uuid (pv); -@@ -58,10 +58,8 @@ find_vg_for_pv_uuid (lvm_t lvm_ctx, - if (out_pv != NULL) - *out_pv = pv; - ret = vg; -- dm_free (uuid); - goto out; - } -- dm_free (uuid); - } - } - } -@@ -79,12 +77,12 @@ find_vg_for_pv_uuid (lvm_t lvm_ctx, - static void - print_vg (vg_t vg) - { -- char *s; -+ const char *s; - struct dm_list *pvs; - struct dm_list *lvs; - -- s = lvm_vg_get_uuid (vg); g_print ("UDISKS_LVM2_PV_VG_UUID=%s\n", s); dm_free (s); -- s = lvm_vg_get_name (vg); g_print ("UDISKS_LVM2_PV_VG_NAME=%s\n", s); dm_free (s); -+ s = lvm_vg_get_uuid (vg); g_print ("UDISKS_LVM2_PV_VG_UUID=%s\n", s); -+ s = lvm_vg_get_name (vg); g_print ("UDISKS_LVM2_PV_VG_NAME=%s\n", s); - g_print ("UDISKS_LVM2_PV_VG_SIZE=%" G_GUINT64_FORMAT "\n", lvm_vg_get_size (vg)); - g_print ("UDISKS_LVM2_PV_VG_FREE_SIZE=%" G_GUINT64_FORMAT "\n", lvm_vg_get_free_size (vg)); - g_print ("UDISKS_LVM2_PV_VG_EXTENT_SIZE=%" G_GUINT64_FORMAT "\n", lvm_vg_get_extent_size (vg)); -@@ -117,17 +115,14 @@ print_vg (vg_t vg) - str = g_string_new (NULL); - dm_list_iterate_items (pv_list, pvs) - { -- char *uuid; -+ const char *uuid; - guint64 size; - guint64 free_size; - pv_t pv = pv_list->pv; - - uuid = lvm_pv_get_uuid (pv); - if (uuid != NULL) -- { -- g_string_append_printf (str, "uuid=%s", uuid); -- dm_free (uuid); -- } -+ g_string_append_printf (str, "uuid=%s", uuid); - size = lvm_pv_get_size (pv); - g_string_append_printf (str, ";size=%" G_GUINT64_FORMAT, size); - free_size = lvm_pv_get_free (pv); -@@ -173,8 +168,8 @@ print_vg (vg_t vg) - str = g_string_new (NULL); - dm_list_iterate_items (lv_list, lvs) - { -- char *uuid; -- char *name; -+ const char *uuid; -+ const char *name; - gboolean is_active; - guint64 size; - lv_t lv = lv_list->lv; -@@ -195,11 +190,6 @@ print_vg (vg_t vg) - g_string_append_printf (str, "active=%d", is_active); - g_string_append_c (str, ' '); - } -- -- if (uuid != NULL) -- dm_free (uuid); -- if (name != NULL) -- dm_free (name); - } - g_print ("UDISKS_LVM2_PV_VG_LV_LIST=%s\n", str->str); - g_string_free (str, TRUE); -@@ -212,9 +202,9 @@ print_vg (vg_t vg) - static void - print_pv (pv_t pv) - { -- char *s; -+ const char *s; - -- s = lvm_pv_get_uuid (pv); g_print ("UDISKS_LVM2_PV_UUID=%s\n", s); dm_free (s); -+ s = lvm_pv_get_uuid (pv); g_print ("UDISKS_LVM2_PV_UUID=%s\n", s); - g_print ("UDISKS_LVM2_PV_NUM_MDA=%" G_GUINT64_FORMAT "\n", lvm_pv_get_mda_count (pv)); - - /* TODO: ask for more API in liblvm - pvdisplay(8) suggests more information --- -cgit v0.8.3-6-g21f6 |