In message <[EMAIL PROTECTED]>, Bernd Walter writes:

>> da1a closed but without FREAD|FWRITE, which turns the close into a no-op.
>
>[125]cicely5# grep d_open *
>grep: CVS: Operation not permitted
>vinumext.h:d_open_t vinumopen;
>vinumio.c:      drive->lasterror = (dsw->d_open) (drive->dev, FWRITE | FREAD, 0, 
>NULL);
>Exit 2
>[126]cicely5# grep d_close *
>grep: CVS: Operation not permitted
>vinumext.h:d_close_t vinumclose;
>vinumio.c:    error = (*devsw(drive->dev)->d_close) (drive->dev, 0, 0, NULL);
>Exit 2
>
>You are saying that the close should read?
>error = (*devsw(drive->dev)->d_close) (drive->dev, FWRITE | FREAD, 0, NULL);

Yes, d_close should match whatever the corresponding d_open is called with.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
[EMAIL PROTECTED]         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to