ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Sergey V Turchin <zerg@altlinux.org>
To: Eugene Vlasov <eugene@ikz.ru>,
	ALT Linux Sisyphus discussion list <sisyphus@altlinux.ru>
Subject: Re: [sisyphus] Проблема с subfs и du/find
Date: Mon, 27 Sep 2004 14:58:58 +0400
Message-ID: <200409271458.59280.zerg@altlinux.org> (raw)
In-Reply-To: <20040907115204.GA6497@eugene-home.ikz.ru>


[-- Attachment #1.1: Type: text/plain, Size: 436 bytes --]

В сообщении от Вторник 07 Сентябрь 2004 15:52 Eugene Vlasov 
написал(a):
> Добрый день.
>
> Установил себе subfs и натолкнулся на проблему, которую пока не
> могу решить. Проблема в том, что du и find некорректно работают с
> дисками смонтированными через subfs.
Эта фича, взятая у SuSE. Патч прикреплен.

[...]

-- 
Regards, Sergey, ALT Linux Team, http://www.altlinux.ru
http://stinkfoot.org:11371/pks/lookup?op=get&search=0x1C2A3F08

[-- Attachment #1.2: disable-statfs-alt.patch --]
[-- Type: text/x-diff, Size: 723 bytes --]

--- subfs-2.4-0.9/subfs.c~	2004-05-11 22:23:47 +0400
+++ subfs-2.4-0.9/subfs.c	2004-05-11 22:24:45 +0400
@@ -286,6 +286,12 @@ static int subfs_open(struct inode *inod
  */
 static int subfs_statfs(struct super_block *sb, struct statfs *buf)
 {
+#if 1
+/* disable stafs, so "df" and other tools do not trigger to mount
+   the media, which might cause error messages or hang, if the block
+   device driver hangs */
+	return 0;
+#else
 	struct subfs_mount *sfs_mnt = sb->u.generic_sbp;
 	struct vfsmount *child;
 	if (down_interruptible(&sfs_mnt->sem))
@@ -296,6 +302,7 @@ static int subfs_statfs(struct super_blo
 		return PTR_ERR(child);
 	subfs_send_signal();
 	return -ERESTARTSYS;
+#endif
 }
 
 

[-- Attachment #2: signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2004-09-27 10:58 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-07 11:52 Eugene Vlasov
2004-09-27 10:58 ` Sergey V Turchin [this message]
2004-09-28  7:25   ` Eugene Vlasov
2004-09-30  9:44     ` Sergey V Turchin
2004-10-06 16:24       ` Eugene Vlasov
2004-10-06 20:56         ` Dmitry V. Levin
2004-10-07 19:58           ` Eugene Vlasov
2004-10-12  9:31         ` [sisyphus] " Michael Shigorin

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=200409271458.59280.zerg@altlinux.org \
    --to=zerg@altlinux.org \
    --cc=eugene@ikz.ru \
    --cc=sisyphus@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 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