ext2_vfsops.c (46676) | ext2_vfsops.c (47640) |
---|---|
1/* 2 * modified for EXT2FS support in Lites 1.1 3 * 4 * Aug 1995, Godmar Back (gback@cs.utah.edu) 5 * University of Utah, Department of Computer Science 6 */ 7/* 8 * Copyright (c) 1989, 1991, 1993, 1994 --- 262 unchanged lines hidden (view full) --- 271 if ((error = namei(ndp)) != 0) 272 return (error); 273 devvp = ndp->ni_vp; 274 275 if (devvp->v_type != VBLK) { 276 vrele(devvp); 277 return (ENOTBLK); 278 } | 1/* 2 * modified for EXT2FS support in Lites 1.1 3 * 4 * Aug 1995, Godmar Back (gback@cs.utah.edu) 5 * University of Utah, Department of Computer Science 6 */ 7/* 8 * Copyright (c) 1989, 1991, 1993, 1994 --- 262 unchanged lines hidden (view full) --- 271 if ((error = namei(ndp)) != 0) 272 return (error); 273 devvp = ndp->ni_vp; 274 275 if (devvp->v_type != VBLK) { 276 vrele(devvp); 277 return (ENOTBLK); 278 } |
279 if (major(devvp->v_rdev) >= nblkdev || 280 bdevsw(devvp->v_rdev) == NULL) { | 279 if (bdevsw(devvp->v_rdev) == NULL) { |
281 vrele(devvp); 282 return (ENXIO); 283 } 284 285 /* 286 * If mount by non-root, then verify that user has necessary 287 * permissions on the device. 288 */ --- 903 unchanged lines hidden --- | 280 vrele(devvp); 281 return (ENXIO); 282 } 283 284 /* 285 * If mount by non-root, then verify that user has necessary 286 * permissions on the device. 287 */ --- 903 unchanged lines hidden --- |