A tentative agreement has been reached in regards to a procedure
to remove 'b'lock devices. The agreement is, essentially, that block devices will be collapsed into character devices as a first step (though I don't particularly agree), and raw device names 'rxxx' will become simply 'xxx' in devfs in the second step (i.e. no 'rxxx' names will exist). The renaming will not effect the original /dev and the expectation is that devfs will eventually (but not immediately) become the standard way to access devices in the system. If it is determined that a reimplementation of block device access characteristics is beneficial, a number of alternatives will be possible that do not involve resurrecting the 'b'lock device class. For example, an ioctl() that might be made on an open character device descriptor or a generic buffered overlay device. This commit removes the blockdev disablement sysctl which does not apply to the solution that was reached.
This commit is contained in:
parent
96df778049
commit
dfbdd7d2b3
@ -120,9 +120,6 @@ VNODEOP_SET(spec_vnodeop_opv_desc);
|
||||
static int bdev_buffered = 0;
|
||||
SYSCTL_INT(_vfs, OID_AUTO, bdev_buffered, CTLFLAG_RW, &bdev_buffered, 0, "");
|
||||
|
||||
static int enable_userblk_io = 1;
|
||||
SYSCTL_INT(_vfs, OID_AUTO, enable_userblk_io, CTLFLAG_RW, &enable_userblk_io, 0, "");
|
||||
|
||||
int
|
||||
spec_vnoperate(ap)
|
||||
struct vop_generic_args /* {
|
||||
@ -334,8 +331,6 @@ spec_bufread(ap)
|
||||
int seqcount = ap->a_ioflag >> 16;
|
||||
dev_t dev;
|
||||
|
||||
if (!enable_userblk_io)
|
||||
return (EINVAL);
|
||||
if (uio->uio_offset < 0)
|
||||
return (EINVAL);
|
||||
dev = vp->v_rdev;
|
||||
@ -458,8 +453,6 @@ spec_bufwrite(ap)
|
||||
register int n, on;
|
||||
int error = 0;
|
||||
|
||||
if (!enable_userblk_io)
|
||||
return (EINVAL);
|
||||
if (uio->uio_resid == 0)
|
||||
return (0);
|
||||
if (uio->uio_offset < 0)
|
||||
|
@ -120,9 +120,6 @@ VNODEOP_SET(spec_vnodeop_opv_desc);
|
||||
static int bdev_buffered = 0;
|
||||
SYSCTL_INT(_vfs, OID_AUTO, bdev_buffered, CTLFLAG_RW, &bdev_buffered, 0, "");
|
||||
|
||||
static int enable_userblk_io = 1;
|
||||
SYSCTL_INT(_vfs, OID_AUTO, enable_userblk_io, CTLFLAG_RW, &enable_userblk_io, 0, "");
|
||||
|
||||
int
|
||||
spec_vnoperate(ap)
|
||||
struct vop_generic_args /* {
|
||||
@ -334,8 +331,6 @@ spec_bufread(ap)
|
||||
int seqcount = ap->a_ioflag >> 16;
|
||||
dev_t dev;
|
||||
|
||||
if (!enable_userblk_io)
|
||||
return (EINVAL);
|
||||
if (uio->uio_offset < 0)
|
||||
return (EINVAL);
|
||||
dev = vp->v_rdev;
|
||||
@ -458,8 +453,6 @@ spec_bufwrite(ap)
|
||||
register int n, on;
|
||||
int error = 0;
|
||||
|
||||
if (!enable_userblk_io)
|
||||
return (EINVAL);
|
||||
if (uio->uio_resid == 0)
|
||||
return (0);
|
||||
if (uio->uio_offset < 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user