fixing busybox mount/umount to work with udisks

Natanael Copa natanael.copa at gmail.com
Tue Jan 31 11:57:00 UTC 2012


On Tue, Jan 31, 2012 at 12:04 PM, walter harms <wharms at bfs.de> wrote:
>
>
> Am 31.01.2012 10:11, schrieb Natanael Copa:
>> Hi,
>>
>> udisks needs support for the uhelper option to mount/umount[1] and
>> currently udisks does not work at all with busybox mount/umount. (I
>> hacked[2] udisks but its not getting accept from upstream udisks)
>>
>
> are you will to drop a line why they refused the patch ?

Because I missunderstood how that animal worked and simply removed the
uhelper option, claiming it did nothing - which is wrong. I was not
aware of that util-linux saved userspace only mount options in
/run/mount/utab. I had never heard of utab nor read about it in any
documentation. I saw the code passed over the uhelper=udisks option
but i never saw the option enter /proc/mounts and wrongly assumed it
had to do with hal compatibility or similar.

https://bugs.freedesktop.org/show_bug.cgi?id=41142

As I can see there are 2 options:
1. patch udisks to support non-util-linux mount, in some kind of
fallback fashion with reduced functionality (you will not be able to
run "umount" from command line on mounts that was mounted from GUI)
2. patch busybox (compile time option which defaults to off) with
support for userspace only mount options. Drawbacks with this you
already know. There is no way to simple implement this without adding
tons of code. (well, we could store the userspace options in a more
sane format)

I wonder what the BSDs do with this...

-- 
Natanael Copa


More information about the busybox mailing list