--- 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 }