Re: Udisks uses ntfs instead of ntfs-3g

2018-05-31 Thread Chris Marusich
Pierre Neidhardt  writes:

> I've patched ntfs-3g to symlink mount.ntfs to mount.ntfs-3g and it works
> as expected.  If the new ntfs-3g is installed as a system package, that
> is to say.

Nice!

> Indeed, libmount seems to only look in
>
>   /run/current-system/profile/sbin/mount.*
>
> and not in
>
>   ~/.guix-profile/sbin/mount.*.
>
> Is this the behaviour we really want?  Maybe, considering libmount is fairly
> low level.  Any insights?

Does libmount provide any run-time control over how it finds these
things?  For example, is there an environment variable or a
configuration file that controls where it looks?  If so, we might be
able to customize it, or at least a user might be able to use it to tell
libmount where to look.  I don't know much about libmount currently,
which is why I'm asking.

-- 
Chris


signature.asc
Description: PGP signature


Re: Udisks uses ntfs instead of ntfs-3g

2018-05-23 Thread Pierre Neidhardt

I've patched ntfs-3g to symlink mount.ntfs to mount.ntfs-3g and it works
as expected.  If the new ntfs-3g is installed as a system package, that
is to say.

Indeed, libmount seems to only look in

/run/current-system/profile/sbin/mount.*

and not in

~/.guix-profile/sbin/mount.*.

Is this the behaviour we really want?  Maybe, considering libmount is fairly
low level.  Any insights?

To see that you can try the following command:

--8<---cut here---start->8---
> sudo LIBMOUNT_DEBUG=all mount /dev/sda1 /mnt
5132: libmount: INIT: library debug mask: 0x
[...]
5132: libmount:  CXT: [0x2162690]: 
/run/current-system/profile/sbin/mount.ntfs ... not found
[...]
--8<---cut here---end--->8---

See https://github.com/storaged-project/udisks/issues/532 for more
details.

I'll submit a patch soon.

--
Pierre Neidhardt


signature.asc
Description: PGP signature


Re: Udisks uses ntfs instead of ntfs-3g

2018-05-21 Thread Joshua Branson
Pierre Neidhardt  writes:

> I also noticed that Guix packaged version is 2.1.8 which is fairly old.
> Latest release is 2.7.6.
>
> I can submit a patch.

Please do.



Re: Udisks uses ntfs instead of ntfs-3g

2018-05-21 Thread Pierre Neidhardt

I also noticed that Guix packaged version is 2.1.8 which is fairly old.
Latest release is 2.7.6.

I can submit a patch.

-- 
Pierre Neidhardt


signature.asc
Description: PGP signature


Re: Udisks uses ntfs instead of ntfs-3g

2018-05-17 Thread Pierre Neidhardt

Done: https://github.com/storaged-project/udisks/issues/532.

-- 
Pierre Neidhardt

I wasn't kissing her, I was whispering in her mouth.
-- Chico Marx


signature.asc
Description: PGP signature


Re: Udisks uses ntfs instead of ntfs-3g

2018-05-17 Thread Ludovic Courtès
Pierre Neidhardt  skribis:

> Udisks mounts external NTFS partitions using the NTFS kernel module
> (read-only) instead of ntfs-3g (read-write).  I would assume that if the
> users have ntfs-3g installed, they probably want to use it by default
>
> I haven't tested it, but I think symlinking mount.ntfs to ntfs-3g is
> enough to get Udisks to use ntfs-3g by default.
>
> (It's what https://wiki.archlinux.org/index.php/NTFS-3G seems to suggest
> at least.)
>
> What do you think?

The change would be fine by me, but perhaps it would make sense to
discuss it with upstream Udisks people?

Ludo’.