Commit Graph

181 Commits

Author SHA1 Message Date
Mike Blumenkrantz e1e525ae19 add helper udev function to browse children devices, use helper functions to get properties when not found in current disk device
SVN revision: 59566
2011-05-21 19:33:55 +00:00
Mike Blumenkrantz 1fb3a2469b huge bugfix patch for eeze 1.0 stuff: I fubared disk detection pretty hard initially, I think this fixes it all
SVN revision: 59458
2011-05-17 00:14:44 +00:00
Mike Blumenkrantz 89df67bbc2 add fallback methods for grabbing disk vendor/model/etc
SVN revision: 59457
2011-05-17 00:10:52 +00:00
Mike Blumenkrantz 98d5dd27aa in this commit, we learn the value of the '!' operator.
SVN revision: 59447
2011-05-16 12:09:47 +00:00
Mike Blumenkrantz c4b01dc22f account for canceled operations (no events for these), remove freed disks from event list
SVN revision: 59446
2011-05-16 11:32:11 +00:00
Mike Blumenkrantz d35ef797bc add docs for eject, fix some devastating typos in eject, eject now unmounts mounted disks before ejecting
SVN revision: 59445
2011-05-16 11:24:26 +00:00
Mike Blumenkrantz 775b86bccd add eject functions/events
SVN revision: 59443
2011-05-16 11:03:06 +00:00
Mike Blumenkrantz d05399250e trailing whitespace--
SVN revision: 59441
2011-05-16 10:38:47 +00:00
Mike Blumenkrantz f4665b0140 track all disk objects, fix typo in eeze optmap from earlier, catch and create external mount events
SVN revision: 59439
2011-05-16 09:52:16 +00:00
Mike Blumenkrantz 9989571099 forgot to add uid to the mount optmap
SVN revision: 59432
2011-05-16 02:16:26 +00:00
Mike Blumenkrantz 56b342ccc9 eeze_disk_cancel for canceling pending operations
SVN revision: 59430
2011-05-16 01:32:40 +00:00
Mike Blumenkrantz 7561260963 forgot eeze_disk_udev_get_parent earlier
SVN revision: 59429
2011-05-16 00:57:16 +00:00
Mike Blumenkrantz 9d11cdbc20 automatically apply iocharset=utf8 for jfs (NOT with FAT. causes corruption)
SVN revision: 59428
2011-05-16 00:13:42 +00:00
Mike Blumenkrantz 1856a909e3 add a mountopt flag for automatically adding uid
SVN revision: 59427
2011-05-16 00:06:41 +00:00
Mike Blumenkrantz ad7a0d33b0 apply mount wrapper to umount, use ecore_exe_run instead of pipe_run
SVN revision: 59426
2011-05-15 23:54:30 +00:00
Mike Blumenkrantz 6ff3f70d1b just use ecore_exe_run instead of pipe_run
SVN revision: 59425
2011-05-15 23:50:06 +00:00
Mike Blumenkrantz 970e932e85 fix failure from doxy migration script
SVN revision: 59423
2011-05-15 22:58:36 +00:00
Mike Blumenkrantz 58c89b619b new functions for applying a wrapper for (u)mount
SVN revision: 59422
2011-05-15 22:56:14 +00:00
Mike Blumenkrantz 4139d9282e use defines as their string value in printfs
SVN revision: 59421
2011-05-15 22:50:22 +00:00
Mike Blumenkrantz b821494eed reorder mount errors, add default handler
SVN revision: 59420
2011-05-15 22:34:03 +00:00
Mike Blumenkrantz f40368992f fix result code handling for mount: errors can be ORed
SVN revision: 59419
2011-05-15 22:32:17 +00:00
Mike Blumenkrantz 9ca9d4a0c5 update version number define
SVN revision: 59418
2011-05-15 22:31:54 +00:00
Mike Blumenkrantz 374df30b47 add some new functions for direct udev lookups on disk devices
SVN revision: 59412
2011-05-15 20:50:26 +00:00
Carsten Haitzler 3441c6f107 doxy -> .h
SVN revision: 58486
2011-04-08 10:43:13 +00:00
Mike Blumenkrantz f97e7c8d40 same for old libmount...
SVN revision: 58269
2011-04-02 03:30:56 +00:00
Mike Blumenkrantz a93764d3b7 null variable on shutdown
SVN revision: 58268
2011-04-02 03:05:00 +00:00
Christopher Michael 484f82ba3b Eeze: Fix 'syspath may be used uninitialized'.
SVN revision: 58075
2011-03-24 20:27:09 +00:00
Mike Blumenkrantz a02ceb683c +eeze_udev_syspath_get_devname, thanks to Clement Battin
SVN revision: 57854
2011-03-18 17:10:50 +00:00
Mike Blumenkrantz 8c29186b5a sed -i 's/[\t ]\+$//' **/*.{c,h}
SVN revision: 57709
2011-03-12 18:41:03 +00:00
Mike Blumenkrantz 6e1be20e6c +EEZE_UDEV_TYPE_NET, thanks to Clement Battin
SVN revision: 57708
2011-03-12 18:39:33 +00:00
Mike Blumenkrantz 27751d0921 fix bug with removing devices not passing filter in watches, part of bug pointed out by Clement Battin on ML
SVN revision: 57499
2011-03-03 16:30:45 +00:00
Mike Blumenkrantz 4337508836 add filter for exe events
SVN revision: 57000
2011-02-14 01:47:37 +00:00
Mike Blumenkrantz 04a0ecc263 disregard previous commit, must have been high
SVN revision: 56999
2011-02-14 01:32:40 +00:00
Mike Blumenkrantz 1914e41eb4 use an id pointer to differentiate eeze_mount events and avoid segvs
SVN revision: 56997
2011-02-14 00:50:29 +00:00
Mike Blumenkrantz 16b61622e6 support libmount 2.19, fix some bugs here and there, automatically grab fstab/mtab mount flags when using eeze_disk_mountopts_get with new libmount
SVN revision: 56947
2011-02-11 03:14:00 +00:00
Mike Blumenkrantz f53ca1a6ab formatting
SVN revision: 56945
2011-02-11 03:11:09 +00:00
Mike Blumenkrantz 9d811df5b2 switch EEZE_DISK_MOUNTOPT_DEFAULTS to a define
SVN revision: 56882
2011-02-09 21:36:14 +00:00
Mike Blumenkrantz 178cda4124 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
2011-02-09 21:31:11 +00:00
Mike Blumenkrantz 5feb32f820 forgot a safety check here
SVN revision: 56873
2011-02-09 20:38:09 +00:00
Mike Blumenkrantz 516fbcfae6 fix makefiles
q66: SPANK SPANK SPANK!


SVN revision: 56386
2011-01-29 21:17:44 +00:00
Daniel Kolesa 31ffe80390 oh, forgot to get rid of this as well.
SVN revision: 56376
2011-01-29 11:39:09 +00:00
Daniel Kolesa 3e477c806a No LIBUDEV_CFLAGS needed in Makefile.am, because that's already included in EEZE_CFLAGS. Having LIBUDEV_CFLAGS breaks building on systems without eeze_mount build.
SVN revision: 56375
2011-01-29 11:31:46 +00:00
Mike Blumenkrantz c9e2fc434e eeze 1.1 in trunk: disk mounting is now possible
SVN revision: 56362
2011-01-29 04:21:53 +00:00
Carsten Haitzler c2d14d60ec been removing too many headers. fix warning.
SVN revision: 56187
2011-01-16 08:14:42 +00:00
Mike Blumenkrantz e38d447210 add unistd.h and kill off another dead store
SVN revision: 56143
2011-01-15 20:25:44 +00:00
Mike Blumenkrantz b4db71d32b fix a dead store and make removable drive finds return non-usb devices as well
SVN revision: 56142
2011-01-15 20:24:13 +00:00
Mike Blumenkrantz 67d6542cc1 actually return the ret value
SVN revision: 56141
2011-01-15 20:14:40 +00:00
Mike Blumenkrantz d434bb981e more fd fixes because I'm braindead today
SVN revision: 55904
2011-01-05 21:13:38 +00:00
Mike Blumenkrantz 3da7cbc47c zero errno before open calls
SVN revision: 55902
2011-01-05 20:32:42 +00:00
Mike Blumenkrantz 1707697d8a ecrustified for formatting
SVN revision: 55898
2011-01-05 18:46:32 +00:00
Mike Blumenkrantz 961244f70a add O_RDONLY to open()
SVN revision: 55897
2011-01-05 18:44:55 +00:00
Mike Blumenkrantz d47e3516da on feedback from kay sievers, use open() to check for removable media presence
SVN revision: 55895
2011-01-05 18:42:49 +00:00
Vincent Torri d8765063db * fix DSO problem
* simplify a bit the autotools
 * add the possibility to disable the test


SVN revision: 55499
2010-12-11 17:04:34 +00:00
Mike Blumenkrantz a5157e4a03 fix calloc usage
SVN revision: 54841
2010-11-22 23:04:45 +00:00
Cedric BAIL fe92fc087a * eeze: this file is gone.
SVN revision: 54469
2010-11-11 18:06:03 +00:00
Mike Blumenkrantz 99ae8c89e4 backporting missed this, nice catch fidencio
SVN revision: 53755
2010-10-21 23:46:11 +00:00
Mike Blumenkrantz 04f30402ad add extra filter from find_by_type to watches
SVN revision: 53752
2010-10-21 21:20:45 +00:00
Mike Blumenkrantz 71ec1ec5a4 backport some stuff from eeze 1.1:
lots of formatting cleanups
	move udev extern into private header
	another filter added to find_by_type to avoid some disks that randomly crop up with MOUNTABLE


SVN revision: 53745
2010-10-21 20:00:15 +00:00
Mike Blumenkrantz ef1b10734e no need to use get property when there are reasonable simple functions
SVN revision: 53729
2010-10-21 18:50:09 +00:00
Mike Blumenkrantz 58f5409b49 fix shutdown order too
SVN revision: 53507
2010-10-17 04:54:36 +00:00
Mike Blumenkrantz 395970c40c update failure order
SVN revision: 53505
2010-10-17 04:48:39 +00:00
Mike Blumenkrantz 7ec6b64af8 include ecore
SVN revision: 53499
2010-10-16 23:01:33 +00:00
Mike Blumenkrantz bac6759774 init ecore
SVN revision: 53498
2010-10-16 22:56:44 +00:00
Mike Blumenkrantz f1d884900b that's what I wanted to do, fix function
SVN revision: 53495
2010-10-16 20:03:36 +00:00
Mike Blumenkrantz 51aad7ad45 revert obviously wrong non-typo fix
I blame cold meds


SVN revision: 53494
2010-10-16 19:59:43 +00:00
Mike Blumenkrantz 95bbf40398 fix obvious typo which breaks devpath->syspath
SVN revision: 53493
2010-10-16 19:57:21 +00:00
Mike Blumenkrantz bca689359d designate udev color only
SVN revision: 53482
2010-10-16 04:45:23 +00:00
Mike Blumenkrantz a6af8ecfd1 combine private headers
SVN revision: 53481
2010-10-16 04:42:34 +00:00
Mike Blumenkrantz 6614589c34 change internal log dom variable name
SVN revision: 53480
2010-10-16 04:38:11 +00:00
Mike Blumenkrantz 73e8abd5d9 handle some error conditions better to avoid segvs, add a little bit of info on watch creation failure, fix some return types to bools, clean up formatting failures
SVN revision: 53479
2010-10-16 04:18:26 +00:00
Mike Blumenkrantz 496e6350b2 giant doxy cleanup
SVN revision: 53478
2010-10-16 03:57:54 +00:00
Mike Blumenkrantz addc8e47ed fix for new udev sigh
SVN revision: 53375
2010-10-13 18:56:36 +00:00
Mike Blumenkrantz 4e6e726145 hilarious typo that breaks the universe is now fixed
SVN revision: 53373
2010-10-13 18:34:03 +00:00
Mike Blumenkrantz aff2d12d35 removal
SVN revision: 53344
2010-10-13 08:22:58 +00:00
Mike Blumenkrantz 900242104f unify udev device creation to unclutter and significantly reduce codebase, some minor formatting fixes
SVN revision: 53333
2010-10-13 02:53:38 +00:00
Mike Blumenkrantz b98d451da0 tiny api addition to allow adding a data pointer to a watch
SVN revision: 53332
2010-10-13 02:53:35 +00:00
Mike Blumenkrantz 0e74073215 clean up includes and fix caps for log domain
SVN revision: 53331
2010-10-13 02:53:33 +00:00
Mike Blumenkrantz 2e1808f468 doxy update
SVN revision: 51479
2010-08-21 03:45:58 +00:00
Christopher Michael ab6390cad3 Fix return values.
SVN revision: 51298
2010-08-18 17:05:29 +00:00
Carsten Haitzler 2bc24a316f eeze - 1.0.0 alpha ready.
SVN revision: 51185
2010-08-16 09:59:13 +00:00
Mike Blumenkrantz 0136fa4aed fix dead assigns for clang shutups
SVN revision: 50974
2010-08-10 20:44:57 +00:00
Luis Felipe Strano Moraes 2c70f0e1c9 Ops, fixing break done by r50927 (forgot to include these two files).
SVN revision: 50928
2010-08-09 14:27:10 +00:00
Mike Blumenkrantz 81644c5029 some long overdue updates:
switch some variables to enum for debugging readability
doxy updates
some small leak fixes


SVN revision: 50690
2010-07-30 18:19:04 +00:00
Carsten Haitzler 0caf090e66 close after fdh del
SVN revision: 50671
2010-07-30 02:53:46 +00:00
Mike Blumenkrantz e9568abe33 sigh
SVN revision: 50163
2010-07-09 16:44:33 +00:00
Mike Blumenkrantz 718fb33521 remove copypasta
SVN revision: 50162
2010-07-09 15:59:49 +00:00
Christopher Michael 03b7bd2653 Move Eeze header to own dir.
SVN revision: 50148
2010-07-09 06:41:31 +00:00
Christopher Michael 5b724d6089 Fix for recent Ecore Api changes.
SVN revision: 49837
2010-06-24 18:04:01 +00:00
Mike Blumenkrantz 1774490b2f versioning stuff from rasties
SVN revision: 49353
2010-05-31 09:33:54 +00:00
Mike Blumenkrantz ca1a90eeee possibly compat for stupid other versions of udev
SVN revision: 49322
2010-05-30 07:09:59 +00:00
Mike Blumenkrantz 8512dd26db dox update, remove image of unknown source
SVN revision: 49153
2010-05-23 05:47:30 +00:00
Mike Blumenkrantz 25e5f5af08 some dox tweaks
SVN revision: 49151
2010-05-23 05:03:17 +00:00
Mike Blumenkrantz 54959ad476 dox overhaul, should be easier to navigate now
SVN revision: 49147
2010-05-22 21:44:26 +00:00
Mike Blumenkrantz 5223f0573d patch from vtorri for autotools, a couple compile warning shutups
SVN revision: 49142
2010-05-22 18:50:27 +00:00
Mike Blumenkrantz 6ad3256a01 completely change directory structure, lib name, includes, don't even bother trying to use this unless your e is the latest version
SVN revision: 49129
2010-05-22 07:04:00 +00:00
Mike Blumenkrantz 2e71c06192 BIG change, api break (again).
watches now return an int value that can be can be bitwise checked with & to reduce usage of strcmp
overall memory allocation should be less (I think), some related bugs fixed along the way
small memory leak in test app that I'm too lazy/blind to figure out
**this should be the last commit that causes an api break


SVN revision: 49118
2010-05-22 01:55:14 +00:00
Mike Blumenkrantz 2133ccd144 fix compile error, add new private function to walk_get sysattr value, fix internal/removable drive detection
SVN revision: 49084
2010-05-21 05:18:24 +00:00
Mike Blumenkrantz e13e6ce071 pretty huge overhaul:
test app should be a bit more robust now
udev compat code is done (I think?)
added udev walk functions for easier device checking
fixed some potential segv in cases where errors checking was not complete enough


SVN revision: 49081
2010-05-21 04:11:58 +00:00
Mike Blumenkrantz 0cae05c2a8 add )
SVN revision: 49078
2010-05-20 21:28:43 +00:00
Mike Blumenkrantz 8b58afe33a fix private walk
SVN revision: 49077
2010-05-20 21:25:34 +00:00