LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File fix_udf.patch of Package udisks2 (Project home:magist3r:patches-leap-42.3)

--- src/udiskslinuxfilesystem.c	2014-03-05 22:05:43.000000000 +0600
+++ src/udiskslinuxfilesystem.c.new	2015-03-10 21:18:37.791896588 +0500
@@ -184,6 +184,7 @@
   "vfat",
   "exfat",
   "ntfs",
+  "ufs",
   NULL,
 };
 
@@ -309,6 +310,13 @@
 static const gchar *exfat_allow_uid_self[] = { "uid=", NULL };
 static const gchar *exfat_allow_gid_self[] = { "gid=", NULL };
 
+/* ---------------------- ufs -------------------- */
+
+static const gchar *ufs_defaults[] = { "ufstype=ufs2", NULL };
+static const gchar *ufs_allow[] = { "ufstype=", NULL };
+static const gchar *ufs_allow_uid_self[] = { NULL };
+static const gchar *ufs_allow_gid_self[] = { NULL };
+
 /* ------------------------------------------------ */
 /* TODO: support context= */
 
@@ -321,6 +329,7 @@
     { "iso9660", iso9660_defaults, iso9660_allow, iso9660_allow_uid_self, iso9660_allow_gid_self },
     { "udf", udf_defaults, udf_allow, udf_allow_uid_self, udf_allow_gid_self },
     { "exfat", exfat_defaults, exfat_allow, exfat_allow_uid_self, exfat_allow_gid_self },
+    { "ufs", ufs_defaults, ufs_allow, ufs_allow_uid_self, ufs_allow_gid_self },
   };
 
 /* ------------------------------------------------ */