platform/upstream/udisks2.git
16 years agoRevert "rely on proper change events from the kernel and udev"
David Zeuthen [Sat, 22 Mar 2008 06:30:04 +0000 (02:30 -0400)]
Revert "rely on proper change events from the kernel and udev"

This reverts commit 071b5825390e537bfbc6650582a81c427017a9e6.

16 years agorely on proper change events from the kernel and udev
David Zeuthen [Sat, 22 Mar 2008 06:28:15 +0000 (02:28 -0400)]
rely on proper change events from the kernel and udev

Relies on patched udev rules as mentioned here

http://gitweb.freedesktop.org/?p=users/david/gnome-disk-utility.git;a=commitdiff;h=d4098ad91e73414afdd8b49a8c57b42d31ff7998

16 years agoif creating a fs on the main device, signal kernel to reread partition table
David Zeuthen [Sat, 22 Mar 2008 06:17:47 +0000 (02:17 -0400)]
if creating a fs on the main device, signal kernel to reread partition table

16 years agocheck that incoming data is valid UTF-8
David Zeuthen [Sat, 22 Mar 2008 05:34:30 +0000 (01:34 -0400)]
check that incoming data is valid UTF-8

Otherwise libdbus.so will terminate us and then it's crash city.

16 years agoadd a kludge to avoid detecting vfat on a whole disk as a partition table
David Zeuthen [Sat, 22 Mar 2008 05:33:29 +0000 (01:33 -0400)]
add a kludge to avoid detecting vfat on a whole disk as a partition table

I don't really know how to make a distinction between a MBR and a
VBR. Both have the MSDOS magic at 0x1fe.

16 years agosupport mkswap and mkntfs
David Zeuthen [Sat, 22 Mar 2008 03:26:43 +0000 (23:26 -0400)]
support mkswap and mkntfs

Also add a note that we need to fix usage of g_io_channel_read_line();
it blocks and we don't want the daemon process to block at all.

16 years agofix deleting extended partitions
David Zeuthen [Sat, 22 Mar 2008 03:03:32 +0000 (23:03 -0400)]
fix deleting extended partitions

We need to zero the contents of the partition _after_ it has been
removed from the partitioning table. If we do it before, we overwrite
important metadata in extended partitions.

16 years agorefuse to create a partition table if an enclosed partition is mounted
David Zeuthen [Fri, 21 Mar 2008 23:02:42 +0000 (19:02 -0400)]
refuse to create a partition table if an enclosed partition is mounted

16 years agoimplement CreatePartitionTable method call
David Zeuthen [Fri, 21 Mar 2008 21:56:20 +0000 (17:56 -0400)]
implement CreatePartitionTable method call

16 years agoadd ModifyPartition dbus call
David Zeuthen [Fri, 21 Mar 2008 05:41:23 +0000 (01:41 -0400)]
add ModifyPartition dbus call

16 years agoadd partition deletion and creation
David Zeuthen [Thu, 20 Mar 2008 02:48:52 +0000 (22:48 -0400)]
add partition deletion and creation

16 years agoforgot to add bash completion script
David Zeuthen [Mon, 17 Mar 2008 21:24:53 +0000 (17:24 -0400)]
forgot to add bash completion script

16 years agoadd mkfs support and iterate over how we handle jobs
David Zeuthen [Mon, 17 Mar 2008 20:46:05 +0000 (16:46 -0400)]
add mkfs support and iterate over how we handle jobs

16 years agouse partition size and offset from part_id
David Zeuthen [Fri, 14 Mar 2008 03:43:01 +0000 (23:43 -0400)]
use partition size and offset from part_id

The kernel sets the size of the extended partition to 1kb to be
helpful so people won't run mkswap or mkfs on it (but big enough to
run lilo). Sigh.

16 years agoapparently the kernel exports sizes of 512 byte sectors
David Zeuthen [Fri, 14 Mar 2008 03:20:18 +0000 (23:20 -0400)]
apparently the kernel exports sizes of 512 byte sectors

16 years agofix block size
David Zeuthen [Fri, 14 Mar 2008 03:12:03 +0000 (23:12 -0400)]
fix block size

Apparently block sizes != 512 aren't that exotic. My Apple iPod 80G
uses 2048 byte sectors. Weirdos.

16 years agoadd missing bits for a proper Mount() and Unmount() implementation
David Zeuthen [Fri, 14 Mar 2008 00:27:57 +0000 (20:27 -0400)]
add missing bits for a proper Mount() and Unmount() implementation

16 years agofirst stab at implementing Mount() and Unmount()
David Zeuthen [Thu, 13 Mar 2008 07:02:15 +0000 (03:02 -0400)]
first stab at implementing Mount() and Unmount()

It works pretty well; there's a few TODO's left though.

16 years agochange the rate limit from 800 msec to 50 msec
David Zeuthen [Wed, 12 Mar 2008 07:49:05 +0000 (03:49 -0400)]
change the rate limit from 800 msec to 50 msec

This is currently commented out; it depends on a patch for gio that
hopefully will land in 2.16.2.

http://bugzilla.gnome.org/show_bug.cgi?id=521946

16 years agoreport and monitor whether a device is mounted
David Zeuthen [Wed, 12 Mar 2008 07:13:27 +0000 (03:13 -0400)]
report and monitor whether a device is mounted

16 years agorework partition table detection and add some new properties
David Zeuthen [Wed, 12 Mar 2008 05:35:36 +0000 (01:35 -0400)]
rework partition table detection and add some new properties

16 years agoinstall D-Bus introspection data in /usr/share/dbus-1/interfaces
David Zeuthen [Wed, 12 Mar 2008 05:34:57 +0000 (01:34 -0400)]
install D-Bus introspection data in /usr/share/dbus-1/interfaces

16 years agouse libdevkit instead of spawning udevinfo ourselves
David Zeuthen [Sun, 9 Mar 2008 07:07:50 +0000 (03:07 -0400)]
use libdevkit instead of spawning udevinfo ourselves

16 years agowork on the partition detection code and remove the holders/slaves for now
David Zeuthen [Sun, 9 Mar 2008 03:37:30 +0000 (22:37 -0500)]
work on the partition detection code and remove the holders/slaves for now

16 years agoavoid emitting add events on startup
David Zeuthen [Sat, 8 Mar 2008 07:18:26 +0000 (02:18 -0500)]
avoid emitting add events on startup

16 years agomake sure we inhibit shutdown when monitoring from devkit-disks
David Zeuthen [Sat, 8 Mar 2008 07:18:06 +0000 (02:18 -0500)]
make sure we inhibit shutdown when monitoring from devkit-disks

16 years agoadd partition table detection
David Zeuthen [Sat, 8 Mar 2008 06:43:44 +0000 (01:43 -0500)]
add partition table detection

Right now this includes a lame part_id tool that will get called by
udev; this needs to be cleaned up and moved to udev proper (means
avoiding glib etc.).

16 years agodon't include by-label stuff in device-file-by-uid
David Zeuthen [Fri, 7 Mar 2008 20:40:39 +0000 (15:40 -0500)]
don't include by-label stuff in device-file-by-uid

Many devices put the same label on the fs; for example Canon SLR's
normally call it EOS_DIGITAL. So it's not really unique.

16 years agomore work in progress on properties
David Zeuthen [Fri, 7 Mar 2008 20:39:29 +0000 (15:39 -0500)]
more work in progress on properties

16 years agodefine some more properties
David Zeuthen [Thu, 6 Mar 2008 06:52:35 +0000 (01:52 -0500)]
define some more properties

This is definitely work in progress.

16 years agoavoid getters and setter and export information as properties
David Zeuthen [Thu, 6 Mar 2008 06:12:48 +0000 (01:12 -0500)]
avoid getters and setter and export information as properties

16 years agoadd an error/exception for not supported
David Zeuthen [Wed, 5 Mar 2008 08:03:18 +0000 (03:03 -0500)]
add an error/exception for not supported

16 years agofix distcheck
David Zeuthen [Wed, 5 Mar 2008 07:33:36 +0000 (02:33 -0500)]
fix distcheck

16 years agoadd mkinstalldirs
David Zeuthen [Wed, 5 Mar 2008 07:30:39 +0000 (02:30 -0500)]
add mkinstalldirs

16 years agoadd udev rules file
David Zeuthen [Wed, 5 Mar 2008 07:27:32 +0000 (02:27 -0500)]
add udev rules file

16 years agoinitial commit
David Zeuthen [Wed, 5 Mar 2008 07:26:32 +0000 (02:26 -0500)]
initial commit