ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Alexander Bokovoy <a.bokovoy@sam-solutions.net>
To: ALT Devel discussion list <devel@altlinux.ru>
Subject: Re: [devel] Re: lufs
Date: Thu, 1 Apr 2004 15:56:36 +0300
Message-ID: <20040401125636.GL3220@sam-solutions.net> (raw)
In-Reply-To: <20040401123734.GU29790@pyro.hopawar.private.net>

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/


  reply	other threads:[~2004-04-01 12:56 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-01 12:37 ` Alexey Morozov
2004-04-01 12:56   ` Alexander Bokovoy [this message]
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

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=20040401125636.GL3220@sam-solutions.net \
    --to=a.bokovoy@sam-solutions.net \
    --cc=devel@altlinux.ru \
    /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 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