CVSROOT:        /cvs/src
Module name:    src
Changes by:     cori...@sourceware.org  2012-10-13 12:34:18

Modified files:
        winsup/cygwin  : ChangeLog fhandler.h fhandler_floppy.cc 
                         fhandler_raw.cc fhandler_tape.cc 
        winsup/cygwin/include/cygwin: fs.h 

Log message:
        * fhandler.h (class fhandler_dev_raw): Add members devbufalloc and
        devbufalign.
        (class fhandler_dev_floppy): Remove member bytes_per_sector;
        * fhandler_floppy.cc (bytes_per_sector): Define as devbufalign.
        (fhandler_dev_floppy::open): Set devbufalign to a multiple of the
        sector size and handle devbuf allocation and alignment in !O_DIRECT
        case here.  Change comment accordingly.
        Call FSCTL_ALLOW_EXTENDED_DASD_IO for partitions as well.
        (fhandler_dev_floppy::raw_write): Fix comment.  Rewrite and fix
        writing behaviour when application uses read and lseek.
        (fhandler_dev_floppy::lseek): Use rounddown macro.  Call
        SetFilePointerEx rather than the old SetFilePointer.
        (fhandler_dev_floppy::ioctl): Reformat switch.  Call
        IOCTL_DISK_UPDATE_PROPERTIES rather than IOCTL_DISK_UPDATE_DRIVE_SIZE
        in BLKRRPART case.  Support BLKIOMIN, BLKIOOPT, BLKPBSZGET and
        BLKALIGNOFF.
        * fhandler_raw.cc (fhandler_dev_raw::fhandler_dev_raw): Initialize
        all devbuf-related members.
        (fhandler_dev_raw::~fhandler_dev_raw): Delete devbufalloc rather than
        devbuf.
        (fhandler_dev_raw::open): Drop allocating devbuf.
        (fhandler_dev_raw::dup): Allocate devbufalloc and set devbuf to support
        new sector-aligned devbuf handling.
        (fhandler_dev_raw::fixup_after_exec): Ditto.
        * fhandler_tape.cc (fhandler_dev_tape::open): Ditto, set devbufalign
        to 1.
        * include/cygwin/fs.h (BLKIOMIN): Define.
        (BLKIOOPT): Define.
        (BLKALIGNOFF): Define.
        (BLKPBSZGET): Define.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/ChangeLog.diff?cvsroot=src&r1=1.5968&r2=1.5969
http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/fhandler.h.diff?cvsroot=src&r1=1.474&r2=1.475
http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/fhandler_floppy.cc.diff?cvsroot=src&r1=1.62&r2=1.63
http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/fhandler_raw.cc.diff?cvsroot=src&r1=1.75&r2=1.76
http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/fhandler_tape.cc.diff?cvsroot=src&r1=1.84&r2=1.85
http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/include/cygwin/fs.h.diff?cvsroot=src&r1=1.2&r2=1.3

Reply via email to