• ioctl with FIODISKFORMAT

    From Fabrice@21:1/5 to All on Tue Jan 19 08:20:48 2016
    Hi,

    I'm using VxWorks 6.9, and I'm trying to format a disk using rawsFsLib.

    My understanding leads me to do :

    fd=open("/ata0:1", 2, 0777)
    value=12 = 0xc
    ioctl(12, 5, 0)
    value = -1 = 0xffffffff

    5 stands for FIODISKFORMAT in ioLib.h. I expected to format /ata0:1, wich if the the first partition of my sata disk.

    Could someone help me and explain me why I get a "-1" value at the output of ioctl ?


    Thanks in advance for your help.

    Regards
    Fabrice

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)