* fhandler.cc (fhandler_base::open): Remove special DEV_FLOPPY_MAJOR

treatment.
	* fhandler_raw.cc (fhandler_dev_raw::open): Simplify write-only case.
	* fhandler_tape.cc (fhandler_dev_tape::raw_write): Add accidentally
	dropped condition.
This commit is contained in:
Corinna Vinschen
2004-04-20 11:01:22 +00:00
parent fc0ac9dfe6
commit 1b557b4333
4 changed files with 13 additions and 9 deletions

View File

@@ -607,11 +607,7 @@ fhandler_base::open (int flags, mode_t mode)
access = GENERIC_WRITE | FILE_READ_ATTRIBUTES;
else
access = GENERIC_READ | GENERIC_WRITE;
/* Allow reliable lseek on disk devices. */
if (get_major () == DEV_FLOPPY_MAJOR)
access |= GENERIC_READ;
else if (get_major () != DEV_SERIAL_MAJOR
&& get_major () != DEV_TAPE_MAJOR)
if (get_major () != DEV_SERIAL_MAJOR && get_major () != DEV_TAPE_MAJOR)
{
create_options |= FILE_SYNCHRONOUS_IO_NONALERT;
access |= SYNCHRONIZE;