add powermanagement and disk utils

This commit is contained in:
Ertuğrul Erata
2015-07-31 10:59:10 +03:00
parent ada4e1ce08
commit 5ddcdd77d9
70 changed files with 3472 additions and 61 deletions
+248
View File
@@ -0,0 +1,248 @@
# Danish translations for udisks.
# This file is distributed under the same license as the udisks package.
#
# Ozan Çağlayan <ozan@pardus.org.tr>, 2011.
msgid ""
msgstr ""
"Project-Id-Version: udisks\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2009-12-01 14:36-0500\n"
"PO-Revision-Date: 2011-03-28 11:17+0300\n"
"Last-Translator: Ozan Çağlayan <ozan@pardus.org.tr>\n"
"Language-Team: Turkish <tr@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=1;plural=0;\n"
"X-Generator: Lokalize 1.2\n"
#: ../policy/org.freedesktop.udisks.policy.in.h:1
msgid "Authentication is required to cancel a job initiated by another user"
msgstr ""
"Başka bir kullanıcı tarafından başlatılan bir görevi iptal etmek için yetki gerekiyor"
#: ../policy/org.freedesktop.udisks.policy.in.h:2
msgid "Authentication is required to check the file system on the device"
msgstr "Aygıtın üzerindeki dosya sistemini denetlemek için yetki gerekiyor"
#: ../policy/org.freedesktop.udisks.policy.in.h:3
msgid "Authentication is required to configure Linux Software RAID devices"
msgstr "Yazılımsal RAID aygıtlarını yapılandırmak için yetki gerekiyor"
#: ../policy/org.freedesktop.udisks.policy.in.h:4
msgid "Authentication is required to configure drive spindown timeout"
msgstr ""
"Sürücünün dönüş hızının yavaşlama aralığını yapılandırmak için yetki gerekiyor"
#: ../policy/org.freedesktop.udisks.policy.in.h:5
msgid "Authentication is required to detach the drive"
msgstr "Sürücüyü ayırmak için yetki gerekiyor"
#: ../policy/org.freedesktop.udisks.policy.in.h:6
msgid "Authentication is required to eject media from the device"
msgstr "Ortamı aygıttan çıkartmak için yetki gerekiyor"
#: ../policy/org.freedesktop.udisks.policy.in.h:7
msgid "Authentication is required to inhibit media detection"
msgstr "Ortam tanımayı engellemek için yetki gerekiyor"
#: ../policy/org.freedesktop.udisks.policy.in.h:8
msgid "Authentication is required to list open files on a mounted file system"
msgstr ""
"Bağlı bir dosya sistemindeki açık dosyaların listelenmesi için yetki gerekiyor"
#: ../policy/org.freedesktop.udisks.policy.in.h:9
msgid ""
"Authentication is required to lock an encrypted device unlocked by another "
"user"
msgstr ""
"Başka bir kullanıcı tarafından kilidi çözülmüş şifreli bir aygıtın "
"kilitlenmesi için yetki gerekiyor"
#: ../policy/org.freedesktop.udisks.policy.in.h:10
msgid "Authentication is required to modify the device"
msgstr "Aygıtı değiştirmek için yetki gerekiyor"
#: ../policy/org.freedesktop.udisks.policy.in.h:11
msgid "Authentication is required to mount the device"
msgstr "Aygıtı bağlamak için yetki gerekiyor"
#: ../policy/org.freedesktop.udisks.policy.in.h:12
msgid "Authentication is required to refresh ATA SMART data"
msgstr "ATA SMART verilerinin tazelenmesi için yetki gerekiyor"
#: ../policy/org.freedesktop.udisks.policy.in.h:13
msgid "Authentication is required to retrieve historical ATA SMART data"
msgstr "Eski ATA SMART verilerinin alınması için yetki gerekiyor"
#: ../policy/org.freedesktop.udisks.policy.in.h:14
msgid "Authentication is required to run ATA SMART self tests"
msgstr "ATA SMART otomatik testlerinin çalıştırılması için yetki gerekiyor"
#: ../policy/org.freedesktop.udisks.policy.in.h:15
msgid "Authentication is required to unlock an encrypted device"
msgstr "Şifrelenmiş bir aygıtın çözülmesi için yetki gerekiyor"
#: ../policy/org.freedesktop.udisks.policy.in.h:16
msgid "Authentication is required to unmount devices mounted by another user"
msgstr ""
"Başka bir kullanıcı tarafından bağlanan aygıtların ayrılması için yetki gerekiyor"
#: ../policy/org.freedesktop.udisks.policy.in.h:17
msgid "Cancel a job initiated by another user"
msgstr "Başka bir kullanıcı tarafından başlatılan görevi iptal et"
#: ../policy/org.freedesktop.udisks.policy.in.h:18
msgid "Check file system of a system-internal device"
msgstr "Bir iç-sistem aygıtındaki dosya sistemini denetle"
#: ../policy/org.freedesktop.udisks.policy.in.h:19
msgid "Check file system on a device"
msgstr "Bir aygıttaki dosya sistemini denetle"
#: ../policy/org.freedesktop.udisks.policy.in.h:20
msgid "Configure Linux Software RAID"
msgstr "Yazılımsal RAID mekanizmasını yapılandır"
#: ../policy/org.freedesktop.udisks.policy.in.h:21
msgid "Detach a drive"
msgstr "Bir sürücüyü ayır"
#: ../policy/org.freedesktop.udisks.policy.in.h:22
msgid "Eject media from a device"
msgstr "Bir sürücüden ortam çıkart"
#: ../policy/org.freedesktop.udisks.policy.in.h:23
msgid "Inhibit media detection"
msgstr "Ortam algılamasını engelle"
#: ../policy/org.freedesktop.udisks.policy.in.h:24
msgid "List open files"
msgstr "Açık dosyaları listele"
#: ../policy/org.freedesktop.udisks.policy.in.h:25
msgid "List open files on a system-internal device"
msgstr "Bir iç-sistem aygıtındaki açık dosyaları listele"
#: ../policy/org.freedesktop.udisks.policy.in.h:26
msgid "Lock an encrypted device unlocked by another user"
msgstr ""
"Başka bir kullanıcı tarafından kilidi çözülmüş bir şifreli aygıtı kilitle"
#: ../policy/org.freedesktop.udisks.policy.in.h:27
msgid "Modify a device"
msgstr "Bir aygıtı değiştir"
#: ../policy/org.freedesktop.udisks.policy.in.h:28
msgid "Modify a system-internal device"
msgstr "Bir iç-sistem aygıtını değiştir"
#: ../policy/org.freedesktop.udisks.policy.in.h:29
msgid "Mount a device"
msgstr "Bir aygıtı bağla"
#: ../policy/org.freedesktop.udisks.policy.in.h:30
msgid "Mount a system-internal device"
msgstr "Bir iç-sistem aygıtını bağla"
#: ../policy/org.freedesktop.udisks.policy.in.h:31
msgid "Refresh ATA SMART data"
msgstr "ATA SMART verilerini tazele"
#: ../policy/org.freedesktop.udisks.policy.in.h:32
msgid "Retrieve historical ATA SMART data"
msgstr "Eski ATA SMART verilerini al"
#: ../policy/org.freedesktop.udisks.policy.in.h:33
msgid "Run ATA SMART Self Tests"
msgstr "ATA SMART Otomatik testlerini çalıştır"
#: ../policy/org.freedesktop.udisks.policy.in.h:34
msgid "Set drive spindown timeout"
msgstr "Sürücünün dönüş hızının yavaşlama aralığını belirle"
#: ../policy/org.freedesktop.udisks.policy.in.h:35
msgid "Unlock an encrypted device"
msgstr "Şifrelenmiş bir aygıtın kilidini çöz"
#: ../policy/org.freedesktop.udisks.policy.in.h:36
msgid "Unmount a device mounted by another user"
msgstr "Başka bir kullanıcı tarafından bağlanmış bir aygıtı ayır"
#: ../src/polkit-action-lookup.c:94
msgid "Authentication is required to delete a partition"
msgstr "Disk bölümünün silinmesi için yetki gerekiyor"
#: ../src/polkit-action-lookup.c:95
msgid "Authentication is required to create a filesystem"
msgstr "Dosya sistemi oluşturmak için yetki gerekiyor"
#: ../src/polkit-action-lookup.c:96
msgid "Authentication is required to create a partition"
msgstr "Disk bölümü oluşturmak için yetki gerekiyor"
#: ../src/polkit-action-lookup.c:97
msgid "Authentication is required to modify a partition"
msgstr "Disk bölümünü düzenlemek için yetki gerekiyor"
#: ../src/polkit-action-lookup.c:98
msgid "Authentication is required to create a partition table"
msgstr "Disk bölümü tablosu oluşturmak için yetki gerekiyor"
#: ../src/polkit-action-lookup.c:99
msgid "Authentication is required to set the file system label"
msgstr "Dosya sistemi etiketini belirlemek için yetki gerekiyor"
#: ../src/polkit-action-lookup.c:100
msgid "Authentication is required to stop a Software RAID device"
msgstr "Yazılımsal RAID aygıtını durdurmak için yetki gerekiyor"
#: ../src/polkit-action-lookup.c:101
msgid "Authentication is required to check a Software RAID device"
msgstr "Yazılımsal RAID aygıtını denetlemek için yetki gerekiyor"
#: ../src/polkit-action-lookup.c:102
msgid "Authentication is required to repair a Software RAID device"
msgstr "Yazılımsal RAID aygıtını onarmak için yetki gerekiyor"
#: ../src/polkit-action-lookup.c:103
msgid ""
"Authentication is required to add a new component to a Software RAID device"
msgstr "Yazılımsal RAID aygıtını yeni bir bileşen eklemek için yetki gerekiyor"
#: ../src/polkit-action-lookup.c:104
msgid ""
"Authentication is required to remove a component from a Software RAID device"
msgstr "Yazılımsal RAID aygıtından bir bileşen kaldırmak için yetki gerekiyor"
#: ../src/polkit-action-lookup.c:105
msgid "Authentication is required to start a Software RAID device"
msgstr "Yazılımsal RAID aygıtını başlatmak için yetki gerekiyor"
#: ../src/polkit-action-lookup.c:106
msgid "Authentication is required to create a Software RAID device"
msgstr "Yazılımsal RAID aygıtı oluşturmak için yetki gerekiyor"
#: ../src/polkit-action-lookup.c:107
msgid "Authentication is required to inhibit polling on a drive"
msgstr ""
"Sürücünü periyodik sorgulanmasının (polling) engellenmesi için yetki gerekiyor"
#: ../src/polkit-action-lookup.c:108
msgid "Authentication is required to poll for media"
msgstr "Periyodik ortam sorgulaması (polling) için yetki gerekiyor"
#: ../src/polkit-action-lookup.c:109
msgid "Authentication is required to inhibit all drive polling"
msgstr ""
"Tüm sürücülerin periyodik sorgulanmasının (polling) engellenmesi için yetki gerekiyor"
#: ../src/polkit-action-lookup.c:187
msgid "Device"
msgstr "Aygıt"
#: ../src/polkit-action-lookup.c:212
msgid "Drive"
msgstr "Sürücü"
@@ -0,0 +1,57 @@
--- udisks-2.0.91.orig/src/udiskslinuxfilesystem.c
+++ udisks-2.0.91/src/udiskslinuxfilesystem.c
@@ -298,7 +298,7 @@ static const gchar *iso9660_allow_gid_se
/* ---------------------- udf -------------------- */
static const gchar *udf_defaults[] = { "uid=", "gid=", "iocharset=utf8", "umask=0077", NULL };
-static const gchar *udf_allow[] = { "iocharset=", "umask=", NULL };
+static const gchar *udf_allow[] = { "iocharset=", "umask=", "mode=", "dmode=", NULL };
static const gchar *udf_allow_uid_self[] = { "uid=", NULL };
static const gchar *udf_allow_gid_self[] = { "gid=", NULL };
@@ -512,7 +512,8 @@ is_mount_option_allowed (const FSMountOp
}
static gchar **
-prepend_default_mount_options (const FSMountOptions *fsmo,
+prepend_default_mount_options (UDisksBlock *block,
+ const FSMountOptions *fsmo,
uid_t caller_uid,
GVariant *given_options)
{
@@ -520,6 +521,8 @@ prepend_default_mount_options (const FSM
gint n;
gchar *s;
gid_t gid;
+ const gchar *probed_fs_type;
+ /* static default options from FSMountOptions */
const gchar *option_string;
options = g_ptr_array_new ();
@@ -552,6 +555,17 @@ prepend_default_mount_options (const FSM
}
}
+ /* dynamic default options */
+ /* some broken DVDs come with 0400 directory permissions, making them
+ * unreadable; overwrite readonly UDF media with a 0500 dmode. */
+ probed_fs_type = udisks_block_get_id_type(block);
+ if (g_strcmp0 (probed_fs_type, "udf") == 0 &&
+ udisks_block_get_read_only(block))
+ {
+ g_ptr_array_add (options, g_strdup("dmode=0500"));
+ }
+
+ /* user supplied options */
if (g_variant_lookup (given_options,
"options",
"&s", &option_string))
@@ -709,7 +723,7 @@ calculate_mount_options (UDisksDaemon
/* always prepend some reasonable default mount options; these are
* chosen here; the user can override them if he wants to
*/
- options_to_use = prepend_default_mount_options (fsmo, caller_uid, options);
+ options_to_use = prepend_default_mount_options (block, fsmo, caller_uid, options);
/* validate mount options */
str = g_string_new ("uhelper=udisks2,nodev,nosuid");
@@ -0,0 +1,16 @@
This patch was 'rejected' by upstream at least for now. Drop this from next
release of UDisks 2.x:
http://bugs.freedesktop.org/show_bug.cgi?id=36361#c5
Should be replaced by the udev rules file installed by ntfs-3g package.
--- src/udiskslinuxfilesystem.c.orig
+++ src/udiskslinuxfilesystem.c
@@ -164,6 +164,7 @@
"vfat",
"exfat",
"ntfs",
+ "ntfs-3g",
NULL,
};