ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Andrei Bulava <abulava@altlinux.ru>
To: ALT Linux Sisyphus discussion list <sisyphus@lists.altlinux.org>
Subject: Re: [sisyphus] Настройка ivman
Date: Thu, 28 Sep 2006 15:28:08 +0300
Message-ID: <451BBFD8.5090201@altlinux.ru> (raw)
In-Reply-To: <20060928120005.GN18551@master.mivlgu.local>

Sergey Vlasov wrote:
> On Thu, Sep 28, 2006 at 03:21:37PM +0400, Alexei V. Mezin wrote:
>> Andrei Bulava пишет:
>>
>>> Ну, не знаю про ivman - не пользуюсь, но на pmount-hal "подсел". Мне
>>> помогает `pmount-hal /dev/sda -c cp1251` и скрипт, который сюда присылал
>>> raorn@,
>>> http://lists.altlinux.org/pipermail/sisyphus/attachments/20060720/3f76c602/attachment.ksh
>>>
>>> AFAIK, ivman использует с качестве бэкенда именно pmount, так что можно
>>> обойтись без изменения .fdi (BTW, /usr/share/hal/fdi -
>>> дистрибутиво-специфичные настройки, которые можно перекрыть в
>>> /etc/hal/fdi - там-то у всех пустота, т.к. это уже хост-специфично).
>>>
>> Б-р-р... Ничего не понял.
>> `pmount-hal /dev/sda -c cp1251` запускать руками? И куда этот скрипт 
>> прописывать/откуда запускать?
> 
> Вообще через IvmConfigBase.xml можно переопределить mountcommand и
> umountcommand, указав там нужные опции для pmount.

В общем, у меня работает

<ivm:Option name="mountcommand" value="pmount -c cp1251
'$hal.block.device$'" />
<ivm:Option name="umountcommand" value="pumount '$hal.block.device$'" />

в ~/.ivman/IvmConfigBase.xml

Хотя и кривовато (зачем флэшке с не-vfat этот iocharset?)

> При монтировании через HAL method значения всех опций должна выставить та
> программа, которая вызывает методы монтирования через dbus.  На
> сегодняшний день нормальных средств для вызова этих методов из командной
> строки в Сизифе нет (хотя KDE ими пользуется).
> 
> У pmount опции собственные, ни с чем не совместимые.

В том-то и беда :-(

Хотя, насколько я понял и запуска

$ env PMOUNT_DEBUG=1 pmount-hal /dev/sda
drive:
/org/freedesktop/Hal/devices/storage_serial_Philips_USB_Flash_Drive_0511100300830
volume: /org/freedesktop/Hal/devices/volume_uuid_3C9C_722C
device: /dev/sda
label: PHILIPS UFD
fstype: vfat
options:
umask: (null)
spawnv(): executing pmount 'pmount' '-t' 'vfat' '/dev/sda' 'PHILIPS UFD'
spawn(): pmount terminated with status 0

- проблема, скорее всего, излечима.

Нагло делал так:

$ cat /etc/hal/fdi/policy/01-charset.fdi

<?xml version="1.0" encoding="UTF-8"?> <!-- -*- SGML -*- -->

<deviceinfo version="0.2">

  <device>
    <match key="volume.fstype" string="vfat">
         <merge key="volume.policy.mount_option.iocharset"
type="string">cp1251</merge>
    </match>
  </device>

</deviceinfo>

И после `service haldaemon restart`:

$ env PMOUNT_DEBUG=1 pmount-hal /dev/sda
drive:
/org/freedesktop/Hal/devices/storage_serial_Philips_USB_Flash_Drive_0511100300830
volume: /org/freedesktop/Hal/devices/volume_uuid_3C9C_722C
device: /dev/sda
label: PHILIPS UFD
fstype: vfat
option: iocharset=cp1251
options: iocharset=cp1251
umask: (null)
spawnv(): executing pmount 'pmount' '-t' 'vfat' '/dev/sda' 'PHILIPS UFD'
spawn(): pmount terminated with status 0

Вот если бы "запатчить" pmount-hal на предмет распознавания строки
'option: iocharset=foo', - нам бы очень сильно полегчало.

-- 
// AB1002-UANIC



  parent reply	other threads:[~2006-09-28 12:28 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-27 22:30 Alexei V. Mezin
2006-09-28 11:01 ` Andrei Bulava
2006-09-28 11:21   ` Alexei V. Mezin
2006-09-28 11:41     ` Andrei Bulava
2006-09-28 11:54     ` Igor Zubkov
2006-09-28 12:07       ` Alexei V. Mezin
2006-09-28 12:37         ` Andrei Bulava
2006-09-28 22:19           ` [sisyphus] [JT] " Alexei V. Mezin
2006-09-28 12:00     ` [sisyphus] " Sergey Vlasov
2006-09-28 12:05       ` Igor Zubkov
2006-09-28 12:13       ` Alexei V. Mezin
2006-09-28 12:28       ` Andrei Bulava [this message]
2006-09-28 12:57         ` Alexei V. Mezin
2006-09-28 15:31           ` Andrei Bulava
2006-09-28 15:45             ` Andrii Dobrovol`s`kii
2006-09-28 16:17             ` Alexei V. Mezin
2006-09-28 18:56         ` Alexei V. Mezin
2006-09-28 19:52 ` Alexei V. Mezin
2006-09-29 12:11   ` Andrei Bulava

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=451BBFD8.5090201@altlinux.ru \
    --to=abulava@altlinux.ru \
    --cc=sisyphus@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git