Path: utzoo!attcan!uunet!tut.cis.ohio-state.edu!pt.cs.cmu.edu!rochester!udel!mmdf From: HBO043%DJUKFA11.BITNET@cunyvm.cuny.edu (Christoph van Wuellen) Newsgroups: comp.os.minix Subject: should FS call dev_open on mount? Message-ID: <15250@nigel.udel.EDU> Date: 28 Mar 90 15:23:53 GMT Sender: mmdf@udel.EDU Lines: 11 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.