* [devel] Re: lufs @ 2004-04-01 12:37 ` Alexey Morozov 2004-04-01 12:56 ` Alexander Bokovoy 2004-04-01 13:39 ` Alexander Bokovoy 0 siblings, 2 replies; 7+ messages in thread From: Alexey Morozov @ 2004-04-01 12:37 UTC (permalink / raw) To: Vitaly Lipatov; +Cc: ALT Devel discussion list [-- Attachment #1: Type: text/plain, Size: 1094 bytes --] On Thu, Apr 01, 2004 at 12:02:26AM +0400, Vitaly Lipatov wrote: > Здравствуйте, Алексей! > > А с какой целью в пакете lufs существуют > /etc/auto.ftpfs -> /usr/bin/auto.ftpfs > /etc/auto.sshfs -> /usr/bin/auto.sshfs > > На мой взгляд, неверно делать ссылки на пользовательские программы > из etc. Ну, такова их изначальная природа (в смысле, дистрибутивная). Вообще это "заточки" под autofs, у которого егонные map'ы могут быть и исполняемыми файлами (man 5 autofs), хотя, честно говоря, я ни разу этой возможностью autofs не пользовался. Вообще, можно спросить у корифеев, что они скажут по этому поводу:-). Disclaimer: я сам непосредственно lufs'ом не пользуюсь, мне он нужен только как прокладка для captive (который уже на дороге в Сизиф, только у Миши Шигорина машина поднимется, чтобы перебрать captive (а заодно и модули для lufs'а под новое ядро) в хэшере. Поэтому если у Вас есть претензии и пожелания к сборке именно lufs'а - говорите, я попытаюсь внести необходимые изменения. Или сразу правьте спек и присылайте его мне :-). P.S. Отправляю копию в devel@, послушаем корифеев. [-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --] ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [devel] Re: lufs 2004-04-01 12:37 ` [devel] Re: lufs Alexey Morozov @ 2004-04-01 12:56 ` Alexander Bokovoy 2004-04-01 13:02 ` Alexey Morozov 2004-04-01 13:18 ` Dmitry V. Levin 2004-04-01 13:39 ` Alexander Bokovoy 1 sibling, 2 replies; 7+ messages in thread From: Alexander Bokovoy @ 2004-04-01 12:56 UTC (permalink / raw) To: ALT Devel discussion list On Thu, Apr 01, 2004 at 07:37:34PM +0700, Alexey Morozov wrote: > On Thu, Apr 01, 2004 at 12:02:26AM +0400, Vitaly Lipatov wrote: > > Здравствуйте, Алексей! > > > > А с какой целью в пакете lufs существуют > > /etc/auto.ftpfs -> /usr/bin/auto.ftpfs > > /etc/auto.sshfs -> /usr/bin/auto.sshfs > > > > На мой взгляд, неверно делать ссылки на пользовательские программы > > из etc. > Ну, такова их изначальная природа (в смысле, дистрибутивная). > Вообще это "заточки" под autofs, у которого егонные map'ы могут > быть и исполняемыми файлами (man 5 autofs), хотя, честно говоря, > я ни разу этой возможностью autofs не пользовался. Вообще, можно > спросить у корифеев, что они скажут по этому поводу:-). Вот пример исполняемого map, написанный Сергеем Большаковым (потому и на Tcl): ------------------------------------------------------------------------ #!/usr/bin/tclsh package require Tclx if {![llength $argv]} {exit 1} set mounts {} set host [file tail $argv0] set sc [scancontext create] scanmatch $sc {^(/.+\S)\s+(.+)$} { lappend mounts $matchInfo(submatch0) } scanfile $sc [set fd [open |[concat showmount -e $host]]] scancontext delete $sc close $fd puts $host:[lmatch -regexp $mounts "(?xi).+/[lindex $argv 0]"] ------------------------------------------------------------------------ Позволяет для любого NFS-сервера делать одну карту и обращаться ко всем ресурсам, экспортируемым на этом сервере. -- / Alexander Bokovoy Samba Team http://www.samba.org/ ALT Linux Team http://www.altlinux.org/ Midgard Project Ry http://www.midgard-project.org/ ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [devel] Re: lufs 2004-04-01 12:56 ` Alexander Bokovoy @ 2004-04-01 13:02 ` Alexey Morozov 2004-04-01 13:08 ` Alexander Bokovoy 2004-04-01 13:18 ` Dmitry V. Levin 1 sibling, 1 reply; 7+ messages in thread From: Alexey Morozov @ 2004-04-01 13:02 UTC (permalink / raw) To: ALT Devel discussion list [-- Attachment #1: Type: text/plain, Size: 804 bytes --] On Thu, Apr 01, 2004 at 03:56:36PM +0300, Alexander Bokovoy wrote: > > > /etc/auto.ftpfs -> /usr/bin/auto.ftpfs > > > /etc/auto.sshfs -> /usr/bin/auto.sshfs > > Ну, такова их изначальная природа (в смысле, дистрибутивная). > > Вообще это "заточки" под autofs, у которого егонные map'ы могут > > быть и исполняемыми файлами (man 5 autofs), хотя, честно говоря, > > я ни разу этой возможностью autofs не пользовался. Вообще, можно > > спросить у корифеев, что они скажут по этому поводу:-). > Вот пример исполняемого map, написанный Сергеем Большаковым (потому и на > Tcl): :-)) > ------------------------------------------------------------------------ > #!/usr/bin/tclsh И подобную карту нормально положить в /usr/bin/, а потом ссылаться на нее из /etc? Или есть какое-то другое полиси на этот повод? [-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --] ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [devel] Re: lufs 2004-04-01 13:02 ` Alexey Morozov @ 2004-04-01 13:08 ` Alexander Bokovoy 0 siblings, 0 replies; 7+ messages in thread From: Alexander Bokovoy @ 2004-04-01 13:08 UTC (permalink / raw) To: ALT Devel discussion list On Thu, Apr 01, 2004 at 08:02:31PM +0700, Alexey Morozov wrote: > On Thu, Apr 01, 2004 at 03:56:36PM +0300, Alexander Bokovoy wrote: > > > > /etc/auto.ftpfs -> /usr/bin/auto.ftpfs > > > > /etc/auto.sshfs -> /usr/bin/auto.sshfs > > > Ну, такова их изначальная природа (в смысле, дистрибутивная). > > > Вообще это "заточки" под autofs, у которого егонные map'ы могут > > > быть и исполняемыми файлами (man 5 autofs), хотя, честно говоря, > > > я ни разу этой возможностью autofs не пользовался. Вообще, можно > > > спросить у корифеев, что они скажут по этому поводу:-). > > Вот пример исполняемого map, написанный Сергеем Большаковым (потому и на > > Tcl): > :-)) > > > ------------------------------------------------------------------------ > > #!/usr/bin/tclsh > > И подобную карту нормально положить в /usr/bin/, а потом ссылаться на нее > из /etc? Или есть какое-то другое полиси на этот повод? Да, она же по своему имени вычисляет имя сервера, на котором искать ресурсы. -- / Alexander Bokovoy Samba Team http://www.samba.org/ ALT Linux Team http://www.altlinux.org/ Midgard Project Ry http://www.midgard-project.org/ ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [devel] Re: lufs 2004-04-01 12:56 ` Alexander Bokovoy 2004-04-01 13:02 ` Alexey Morozov @ 2004-04-01 13:18 ` Dmitry V. Levin 2004-04-01 13:27 ` Alexander Bokovoy 1 sibling, 1 reply; 7+ messages in thread From: Dmitry V. Levin @ 2004-04-01 13:18 UTC (permalink / raw) To: ALT Devel discussion list [-- Attachment #1: Type: text/plain, Size: 646 bytes --] On Thu, Apr 01, 2004 at 03:56:36PM +0300, Alexander Bokovoy wrote: > On Thu, Apr 01, 2004 at 07:37:34PM +0700, Alexey Morozov wrote: [...] > > Вообще это "заточки" под autofs, у которого егонные map'ы могут > > быть и исполняемыми файлами (man 5 autofs), хотя, честно говоря, > > я ни разу этой возможностью autofs не пользовался. Вообще, можно > > спросить у корифеев, что они скажут по этому поводу:-). > Вот пример исполняемого map, написанный Сергеем Большаковым Ага, теперь я знаю, кто будет maintainer'ом пакета autofs. *rub* Начинать формальную процедуру переноса пакета в orphaned или можно обойтись без неё? -- ldv [-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --] ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [devel] Re: lufs 2004-04-01 13:18 ` Dmitry V. Levin @ 2004-04-01 13:27 ` Alexander Bokovoy 0 siblings, 0 replies; 7+ messages in thread From: Alexander Bokovoy @ 2004-04-01 13:27 UTC (permalink / raw) To: ALT Devel discussion list On Thu, Apr 01, 2004 at 05:18:52PM +0400, Dmitry V. Levin wrote: > On Thu, Apr 01, 2004 at 03:56:36PM +0300, Alexander Bokovoy wrote: > > On Thu, Apr 01, 2004 at 07:37:34PM +0700, Alexey Morozov wrote: > [...] > > > Вообще это "заточки" под autofs, у которого егонные map'ы могут > > > быть и исполняемыми файлами (man 5 autofs), хотя, честно говоря, > > > я ни разу этой возможностью autofs не пользовался. Вообще, можно > > > спросить у корифеев, что они скажут по этому поводу:-). > > Вот пример исполняемого map, написанный Сергеем Большаковым > > Ага, теперь я знаю, кто будет maintainer'ом пакета autofs. *rub* > > Начинать формальную процедуру переноса пакета в orphaned или можно > обойтись без неё? Переведи пакет пока сразу на меня, а потом с Сергеем на месте договоритесь. У меня к текущему пакету много претензий в результате январского вояжа в autofs-ную вотчину. -- / Alexander Bokovoy Samba Team http://www.samba.org/ ALT Linux Team http://www.altlinux.org/ Midgard Project Ry http://www.midgard-project.org/ ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [devel] Re: lufs 2004-04-01 12:37 ` [devel] Re: lufs Alexey Morozov 2004-04-01 12:56 ` Alexander Bokovoy @ 2004-04-01 13:39 ` Alexander Bokovoy 1 sibling, 0 replies; 7+ messages in thread From: Alexander Bokovoy @ 2004-04-01 13:39 UTC (permalink / raw) To: ALT Devel discussion list On Thu, Apr 01, 2004 at 07:37:34PM +0700, Alexey Morozov wrote: > On Thu, Apr 01, 2004 at 12:02:26AM +0400, Vitaly Lipatov wrote: > > Здравствуйте, Алексей! > > > > А с какой целью в пакете lufs существуют > > /etc/auto.ftpfs -> /usr/bin/auto.ftpfs > > /etc/auto.sshfs -> /usr/bin/auto.sshfs > > > > На мой взгляд, неверно делать ссылки на пользовательские программы > > из etc. > Ну, такова их изначальная природа (в смысле, дистрибутивная). > Вообще это "заточки" под autofs, у которого егонные map'ы могут > быть и исполняемыми файлами (man 5 autofs), хотя, честно говоря, > я ни разу этой возможностью autofs не пользовался. Вообще, можно > спросить у корифеев, что они скажут по этому поводу:-). Вот еще один пример, не претендующий на полноту покрытия, но готовый рассказывать о всех разделах воткнутой в USB флешки: #!/bin/sh RESOURCE=/proc/scsi/usb-storage-0/0 if [ -f $RESOURCE ] ; then DEVNUMBER=$(cat $RESOURCE|grep Host|cut -f5 -d' '|sed 's/[a-z:]//g;'|tr '[0-9]' '[a-z]') DEVATTACHED=$(cat $RESOURCE|grep Attached|cut -f2 -d:) if [ "$DEVATTACHED" = " No " ] ; then exit 1 fi DEVPART=$(/sbin/fdisk -l /dev/sd${DEVNUMBER}|egrep "^/dev/"|cut -f1 -d' '|egrep "$1\$") mkdir -p /mnt/usb/sd${DEVNUMBER} for i in $DEVPART ; do PARTITION=$(echo $i|cut -d/ -f3) echo ":$i -rw,umask=0,user" ln -s /mnt/usb/.auto/${PARTITION} /mnt/usb/sd${DEVNUMBER}/${PARTITION} done exit 0 fi exit 1 -- / Alexander Bokovoy Samba Team http://www.samba.org/ ALT Linux Team http://www.altlinux.org/ Midgard Project Ry http://www.midgard-project.org/ ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2004-04-01 13:39 UTC | newest] Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2004-04-01 12:37 ` [devel] Re: lufs Alexey Morozov 2004-04-01 12:56 ` Alexander Bokovoy 2004-04-01 13:02 ` Alexey Morozov 2004-04-01 13:08 ` Alexander Bokovoy 2004-04-01 13:18 ` Dmitry V. Levin 2004-04-01 13:27 ` Alexander Bokovoy 2004-04-01 13:39 ` Alexander Bokovoy
ALT Linux Team development discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/devel/0 devel/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 devel devel/ http://lore.altlinux.org/devel \ devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru public-inbox-index devel Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.devel AGPL code for this site: git clone https://public-inbox.org/public-inbox.git