summaryrefslogtreecommitdiff
path: root/legacy/eeze/src/bin/eeze_mount.c
diff options
context:
space:
mode:
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>2011-02-09 21:31:11 +0000
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>2011-02-09 21:31:11 +0000
commit178cda41246eb92ff41508b7f0c615dda8ce499a (patch)
treee5494327b1fdef435d73a5c6f6fab46d70550e82 /legacy/eeze/src/bin/eeze_mount.c
parent6067dad09e69bf9eb97fda0e629af007694ea8b4 (diff)
implement actual handling of mountopts, add utf8 to default mountopts, allow iso automounting in eeze_mount
+EEZE_DISK_MOUNTOPT_UTF8 = (1 << 2) +EEZE_DISK_MOUNTOPT_NOEXEC = (1 << 3) +EEZE_DISK_MOUNTOPT_NOSUID = (1 << 4) +EEZE_DISK_MOUNTOPT_REMOUNT = (1 << 5) +EAPI Eina_Bool eeze_disk_mountopts_set(Eeze_Disk *disk, int opts); +EAPI int eeze_disk_mountopts_get(Eeze_Disk *disk); SVN revision: 56879
Diffstat (limited to 'legacy/eeze/src/bin/eeze_mount.c')
-rw-r--r--legacy/eeze/src/bin/eeze_mount.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/legacy/eeze/src/bin/eeze_mount.c b/legacy/eeze/src/bin/eeze_mount.c
index a7aa8227bd..af45c67cc8 100644
--- a/legacy/eeze/src/bin/eeze_mount.c
+++ b/legacy/eeze/src/bin/eeze_mount.c
@@ -15,7 +15,7 @@ static const Ecore_Getopt opts =
15 "LGPL", 15 "LGPL",
16 "Mount a disk using either its /sys/ path or its /dev/ path\n\n", 16 "Mount a disk using either its /sys/ path or its /dev/ path\n\n",
17 1, 17 1,
18 { 18 {
19 ECORE_GETOPT_VERSION('V', "version"), 19 ECORE_GETOPT_VERSION('V', "version"),
20 ECORE_GETOPT_COPYRIGHT('R', "copyright"), 20 ECORE_GETOPT_COPYRIGHT('R', "copyright"),
21 ECORE_GETOPT_LICENSE('L', "license"), 21 ECORE_GETOPT_LICENSE('L', "license"),
@@ -101,7 +101,11 @@ main(int argc, char *argv[])
101 exit(1); 101 exit(1);
102 } 102 }
103 if (argc > 2) 103 if (argc > 2)
104 eeze_disk_mount_point_set(disk, mount_point); 104 {
105 eeze_disk_mount_point_set(disk, mount_point);
106 if (eina_str_has_extension(dev, "iso"))
107 eeze_disk_mountopts_set(disk, EEZE_DISK_MOUNTOPT_LOOP | EEZE_DISK_MOUNTOPT_NOEXEC | EEZE_DISK_MOUNTOPT_NOSUID);
108 }
105 ecore_event_handler_add(EEZE_EVENT_DISK_MOUNT, (Ecore_Event_Handler_Cb)_mount_cb, NULL); 109 ecore_event_handler_add(EEZE_EVENT_DISK_MOUNT, (Ecore_Event_Handler_Cb)_mount_cb, NULL);
106 ecore_event_handler_add(EEZE_EVENT_DISK_ERROR, (Ecore_Event_Handler_Cb)_error_cb, NULL); 110 ecore_event_handler_add(EEZE_EVENT_DISK_ERROR, (Ecore_Event_Handler_Cb)_error_cb, NULL);
107 if (!eeze_disk_mount(disk)) 111 if (!eeze_disk_mount(disk))