Bug 6427 - hal does not recognize LVM or MD volumes
Summary: hal does not recognize LVM or MD volumes
Status: RESOLVED WONTFIX
Alias: None
Product: hal
Classification: Unclassified
Component: hald (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: high normal
Assignee: Danny Kukawka
QA Contact:
URL: https://launchpad.net/bugs/32814
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-29 21:22 UTC by Martin Pitt
Modified: 2013-02-21 10:02 UTC (History)
10 users (show)

See Also:
i915 platform:
i915 features:


Attachments
Implementation of soft raid (md) that reads from /proc/mdstat (21.56 KB, text/plain)
2007-04-26 14:17 UTC, John Tapsell
Details
hal_mount_lvm.patch (11.33 KB, patch)
2008-11-28 03:06 UTC, chantra
Details | Splinter Review

Description Martin Pitt 2006-03-29 21:22:58 UTC
Hal does not export LVM volumes, so that they are not visible in nautilus et al
(through gnome-vfs2).
Comment 1 David Zeuthen (not reading bugmail) 2006-03-30 05:20:52 UTC
Yes this would be nice. Patches welcome. Btw, think we need kernel support for this.
Comment 2 David Zeuthen (not reading bugmail) 2006-03-30 05:25:50 UTC
Btw, the patch should have a strlist of the hal device objects backing the
volume.. just like we do for crypto.. 

Suggest following properties.

 bool volume.linux.is_lvm 
 strlist volume.linux.lvm_backing_volumes = {hal_udi1, hal_udi2, ...}

since you may stack LVM this is fun, you may have have to reference this
property recursively to get the set of physical volumes... 

We probably shouldn't represent LVM volumes if they are not backed by a physical
disk.

Btw, one reason I also want this is to easily get to the physical drive for
certain mount points.. Need this for tweaking disk standby via hdparm and sdparm
when transitioning to battery for instance...
Comment 3 David Zeuthen (not reading bugmail) 2006-08-02 16:08:19 UTC
Actually later kernels now export holders/ and slaves/ so we can use that. We
should also have Setup() and Teardown() methods much like we do for LUKS.
Comment 4 David Zeuthen (not reading bugmail) 2007-04-26 12:27:51 UTC
Let's also track the work needed for MD (multidisk, e.g. RAID) here
Comment 5 John Tapsell 2007-04-26 14:17:41 UTC
Created attachment 9747 [details]
Implementation of soft raid (md) that reads from /proc/mdstat

This is an implementation of reading from /proc/mdstat from kde's ksysguard.  It borrows heavily from the 'offical' mdadm program so logic wise it's up to date.  It won't compile by itself, but the important parts of the two functions    scanForArrays and getMdadmDetail.  The other functions are just for ksysguardd.  I've left them in just in case it helps anyone.
Comment 6 David Zeuthen (not reading bugmail) 2007-05-06 18:33:29 UTC
Added support for Linux RAID with this patch (check out the screenshots linked from the commit text!)

http://gitweb.freedesktop.org/?p=hal.git;a=commit;h=c53f3e46e53204bb1d1910b7fbbd81edaf61c29b

Do we need more properties that these? I also (almost) avoid parsing /proc/mdstat since most of the stuff we need is in sysfs already.

Anyway, device-mapper / LVM support shouldn't be too hard to add and it will even work with stacks containing both md and dm etc. I'll add that soon.
Comment 7 Luka Renko 2007-11-03 15:54:32 UTC
Any update on devicemapper/LVM support?
Comment 8 Florent Mertens 2007-11-15 05:34:27 UTC
i did some works on it, and send my current patch to 
the mailling list for review :

http://lists.freedesktop.org/archives/hal/2007-October/009815.html
Comment 9 Jaroslav Reznik 2008-08-12 01:29:06 UTC
What is the current state of this bug or better feature request? I'm packaging some software (kio-sysinfo) which depends on volume info from Solid/HAL on Fedora 9. But default installation method of Fedora is to install to LVM. It seems that proposed patch was refused... Basic support of LVM would be very nice.
Comment 10 chantra 2008-11-28 01:33:18 UTC
yeah, that would be nice to have LVM/Raid supported by HAL.
As anybody reviewed the patch at all?
Comment 11 chantra 2008-11-28 03:06:48 UTC
Created attachment 20657 [details] [review]
hal_mount_lvm.patch

ported patch from comment#8 to hal-0.5.11~rc2

HAL will detect the volumes. Would be nice to see this included in hal.
Comment 12 Felipe Contreras 2008-12-07 16:20:57 UTC
Is anything wrong with the patch?
Comment 13 Daniel Dumitrache 2009-01-29 14:29:08 UTC
just checked the patch from comment #11 and it works fine for me. any plans for merging it?
Comment 14 Felipe Contreras 2009-02-15 04:16:21 UTC
What can I do to help get this fixed?
Comment 15 John Beranek 2009-05-01 07:50:26 UTC
In reply to questions about there being anything wrong with the patch, and being possibly pedantic, there do seem to be whitespace issues in the patch...
Comment 16 Felipe Contreras 2009-05-01 08:01:42 UTC
(In reply to comment #15)
> In reply to questions about there being anything wrong with the patch, and
> being possibly pedantic, there do seem to be whitespace issues in the patch...

You cannot be serious.

Is that the reason why nobody has merged this in the past 7 months? If yes, it's a pretty lame reason, if no, then what's the point of fixing the whitespace issues if nobody is going to merge it?
Comment 17 Martin Pitt 2009-07-12 23:43:00 UTC
Since hal is obsolete now, and dk-disks has great support for MD, this is pretty much moot now. -> should this be "WONTFIX"?
Comment 18 Felipe Contreras 2009-07-28 02:20:21 UTC
I'm not sure how, but at least in Fedora 11 LVM volumes are detected correctly :)
Comment 19 Dominik Kopp 2009-09-15 07:22:16 UTC
Hi,

I'm trying to describe a terrible situation:

KDE4's dolphin can't trash files from Raid/lvm-volumes without breaking the specification. (http://www.ramendik.ru/docs/trashspec.html)

That means it will move the filed over partition boundaries.
Trashing big files (movies) is obviously is big problem (slowly and filling home partition)

OK, there are already some bug reports out there and all are pointing to this bug.

But the problem is that dolphin relies on hal, hal won't be fixed (but a patch is available!) and hal is obsolete.
However, devicekit isn't used by dolphin. (I don't know, if this statement is correct. I just know that is doesn't work is it should.)

(I installed openSUSE 11.2 Milestone 6, installed devicekit, add RAID1-Volume, /usr/bin/devkit-disks --mount /dev/md0 video, trash file ~/video/foobar, but it moves to home partion instead of ~/video/trash-$userid)

My preferred solution is enable RAID/LVM support in HAL.
if not, which steps are necessary to fix the user's problem?

regards
Dominik


PS: bug reports:
https://bugzilla.novell.com/show_bug.cgi?id=529790 
"KDE4.3.0: throwing files into trash moves them over partition boundaries."

https://bugs.kde.org/show_bug.cgi?id=178479
"trash io slave does not use $topdir/.Trash or $... "

https://bugs.kde.org/show_bug.cgi?id=177023
"Dolphin doesn't fully implement freedesktop.org... "
Comment 20 Martin Pitt 2013-02-21 10:02:26 UTC
I'd like to clean my bug list a bit. This is certainly ooooold cruft.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.