This patch implements some new ioctls for hard disks. This means you can run
fdisk under Cygwin.

Chris

--- cygwin

2002-10-24  Christopher January  <[EMAIL PROTECTED]>

    * include/cygwin/fs.h: New file.
    * include/cygwin/hdreg.h: New file.
    * fhandler_floppy.cc (fhandler_floppy::ioctl): Add implementation for
    for HDIO_GETGEO, BLKGETSIZE, BLKGETSIZE64, BLKRRPART and BLKSSZGET
ioctls.

--- w32api

2002-10-24  Christopher January  <[EMAIL PROTECTED]>

    * include/winioctl.h: Add definition for
    IOCTL_DISK_UPDATE_DRIVE_SIZE.

---

Attachment: hd_ioctl.ChangeLog
Description: Binary data

Attachment: hd_ioctl.patch
Description: Binary data

/* cygwin/fs.h

   Copyright 2002 Red Hat Inc.
   Written by Chris January <[EMAIL PROTECTED]>

This file is part of Cygwin.

This software is a copyrighted work licensed under the terms of the
Cygwin license.  Please consult the file "CYGWIN_LICENSE" for
details. */

#ifndef _CYGWIN_FS_H_
#define _CYGWIN_FS_H_

#include <cygwin/types.h>

#define BLKRRPART  0x0000125f
#define BLKGETSIZE 0x00001260
#define BLKSSZGET  0x00001268
#define BLKGETSIZE64 0x00041268

#endif
/* cygwin/hdreg.h

   Copyright 2002 Red Hat Inc.
   Written by Chris January <[EMAIL PROTECTED]>

This file is part of Cygwin.

This software is a copyrighted work licensed under the terms of the
Cygwin license.  Please consult the file "CYGWIN_LICENSE" for
details. */

#ifndef _CYGWIN_HDREG_H_
#define _CYGWIN_HDREG_H_

struct hd_geometry {
  unsigned char heads;
  unsigned char sectors;
  unsigned short cylinders;
  unsigned long start;
};

#define HDIO_GETGEO                     0x301

#endif

Reply via email to