ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: "Ivan A. Melnikov" <iv@altlinux.org>
To: sisyphus@lists.altlinux.org
Subject: Re: [sisyphus] Fwd: [Bug 17024] NetworkManager and NFS shares
Date: Wed, 24 Dec 2008 11:36:22 +0300
Message-ID: <20081224113622.1712dd98@deimos> (raw)
In-Reply-To: <4951C42D.3070501@sakhalin.ru>

В Wed, 24 Dec 2008 15:10:05 +1000
Alexandr Isaev <alex_is@sakhalin.ru> пишет:

> Ildar Mulyukov пишет:
> > Предлагаю обсудить.
> > 
> > Проблема вкратце следующая:
> > при выключении компьютера процесс выключения стопорится на
> > отмонтировании.
> > 
> > С уважением, Ильдар.
> 
> Стопорится на отмонтировании какого устройства - hd, sd, fd,cd, ncp, 
> smb, ..., etc.?
> 

У меня такое регулярно происходит со смонтированными пользователем
шарами cifs.

Я пытался выдумать какое-то решение, однако в общем случае проблема не
тривиальна. Дело в том, что смонтированный раздел невозможно
отмонтировать, пока он используется (жизненный пример: один из его
каталогов является текущим для одного из процессов). Значит, нельзя
отмонтировать шару до запуска killall.

В то же время, некоторые виды сетей (например, vpn) поддерживаются
демонами. Значит, нельзя отмонтировать шару после запуска killall.

Получается, нужно выборочно убивать процессы, например по результатам
fuser -m $mountpoint. Обернуть эту идею в демон пока руки не дошли;
если кто сделает (или найдёт другое решение), буду благодарен.

-- 
Best Regards,
Ivan A. Melnikov


      parent reply	other threads:[~2008-12-24  8:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-24  4:44 Ildar Mulyukov
2008-12-24  5:10 ` Alexandr Isaev
2008-12-24  6:40   ` Alexander Volkov
2008-12-24  8:14     ` Alexandr Isaev
2008-12-24  8:36   ` Ivan A. Melnikov [this message]

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=20081224113622.1712dd98@deimos \
    --to=iv@altlinux.org \
    --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