[comp.os.minix] should FS call dev_open on mount?

HBO043%DJUKFA11.BITNET@cunyvm.cuny.edu (Christoph van Wuellen) (03/28/90)

Is there any reason why FS doesn't call dev_open during the mount
system call, and analogously, dev_close on umount?
Some devices might need initializations and this hook would make life
easier for those who want to implement trackbuffering:
 - flush track buffers o dsk_close
 - invalidate track buffers on dsk_open

If dev_open and dev_close are called upon mount/umount, there would be
only one place left in the FS to be changed for trackbuffering: forward
a sync() call to the driver to get the track buffers flushed.
C.v.W.