View | Details | Raw Unified | Return to bug 114351
Collapse All | Expand All

(-)/usr/src/linux-2.6.13-rc6-git13-4/fs/subfs/subfs.c (+8 lines)
Lines 158-163 static struct vfsmount *get_child_mount Link Here
158
	int result;
158
	int result;
159
	unsigned long flags = 0;
159
	unsigned long flags = 0;
160
160
161
	/* We're sitting in a detached namespace -
162
	 * don't mount the filesystem. */
163
	if (mnt->mnt_mountpoint == mnt->mnt_root) {
164
		printk (KERN_ERR "subfs: refusing to mount media in "
165
		        "deleted directory\n");
166
		return ERR_PTR(-ENOENT);
167
	}
168
	
161
	/* Lookup the child mount - if it's not mounted, mount it */
169
	/* Lookup the child mount - if it's not mounted, mount it */
162
	child = lookup_mnt (mnt, sfs_mnt->sb->s_root);
170
	child = lookup_mnt (mnt, sfs_mnt->sb->s_root);
163
	if (!child) {
171
	if (!child) {

Return to bug 114351