https://bugzilla.novell.com/show_bug.cgi?id=229210
------- Comment #39 from werner@novell.com 2007-06-06 05:33 MST -------
Such a FLUSH ... can this be done both like
uchar flush_e7[4] = {WIN_FLUSH_CACHE,0,0,0};
uchar flush_ea[4] = {WIN_FLUSH_CACHE_EXT,0,0,0};
ioctl(fd, HDIO_DRIVE_CMD, &flush_e7);
ioctl(fd, HDIO_DRIVE_CMD, &flush_ea);
or does it harm if both ioctl's are preformed? The return
value of the last for 0xEA could be ignored. Beside this
0xEA isn't known by hdparm(8) ... at least in STABLE.
Beside this: what does 2) of comment #38 mean. My code definitly access only
IDE and SCSI/SATA disks. AFAIK the ioctls should be applicable to IDE disks.
Is there a difference between real SCSI disks and SATA disks? If true, how to
determine this difference from /sys/block/sd<x> and/or
/sys/class/scsi_disc: