⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dospartlibata.c

📁 vxworks 下ata,scsi,以及IO口的 操作事例程序 对文件系统编程很有帮助
💻 C
📖 第 1 页 / 共 5 页
字号:
      Mounting partition 01 - VxWorks device Name "/ataCtrl0Drive0Part1"      Absolute sector: 0x00005ebf  Number of sectors: 0x00200d81       -> dosFsConfigShow "/ataCtrl0Drive0Part0"     device name:               /ataCtrl0Drive0Part0     total number of sectors:   24129     bytes per sector:          512     media byte:                0xf8     # of sectors per cluster:  8     # of reserved sectors:     1     # of FAT tables:           2     # of sectors per FAT:      9     max # of root dir entries: 512     # of hidden sectors:       63     removable medium:          TRUE     disk change w/out warning: not enabled     auto-sync mode:            not enabled     long file names:           not enabled     exportable file system:    not enabled     lowercase-only filenames:  not enabled     volume mode:               O_RDWR (read/write)     available space:           11599872 bytes     max avail. contig space:   11599872 bytes     value = 0 = 0x0      -> dosFsConfigShow "/ataCtrl0Drive0Part1"      device name:               /ataCtrl0Drive0Part1     total number of sectors:   2100609     bytes per sector:          512     media byte:                0xf0     # of sectors per cluster:  33     # of reserved sectors:     1     # of FAT tables:           2     # of sectors per FAT:      249     max # of root dir entries: 112     # of hidden sectors:       0     removable medium:          TRUE     disk change w/out warning: not enabled     auto-sync mode:            not enabled     See:     long file names:           ENABLED      <- LONG FILENAMES!     exportable file system:    not enabled     lowercase-only filenames:  not enabled     volume mode:               O_RDWR (read/write)     available space:           1075244544 bytes     max avail. contig space:   1075244544 bytes     value = 0 = 0x0     ->   ------------------------------------------------------------------------------      *********************************************************** 4.)  EXAMPLE OF USING dosPartMountScsi and dosPartShowScsi     ***********************************************************  VxWorks (for Motorola MVME167) version 5.3.1.  -> scsiAutoConfig      value = 0 = 0x0  -> scsiShow ID LUN VendorID    ProductID     Rev. Type  Blocks  BlkSize pScsiPhysDev  -- --- -------- ---------------- ---- ---- -------- ------- ------------  0  0  QUANTUM  P80S 980-80-94xx 6.8    0   164058    512    0x01fff7f8   4  0  CONNER   CFP1080S         4649   0  2110812    512    0x01ffe518  value = 0 = 0x0  ->   -> ld < C:\dosPartLib\scsi\dosPartLibScsi.o value = 14385160 = 0xdb8008 ->   -> sp dosPartMountScsi, pSysScsiCtrl task spawned: id = 1fb5814, name = u0 value = 33249300 = 0x1fb5814 ->   Mounting partition 00 - VxWorks device Name "ID0/LUN0/Part0" Absolute sector: 0x00000020  Number of sectors: 0x00003fe0 Approximate Partition size: 7 MBs  Mounting partition 01 - VxWorks device Name "ID0/LUN0/Part1" Absolute sector: 0x00004020  Number of sectors: 0x000047e0 Approximate Partition size: 8 MBs  Mounting partition 02 - VxWorks device Name "ID0/LUN0/Part2" Absolute sector: 0x00008820  Number of sectors: 0x000067e0 Approximate Partition size: 12 MBs  Mounting partition 03 - VxWorks device Name "ID0/LUN0/Part3" Absolute sector: 0x0000f020  Number of sectors: 0x000027e0 Approximate Partition size: 4 MBs  Mounting partition 04 - VxWorks device Name "ID0/LUN0/Part4" Absolute sector: 0x00011820  Number of sectors: 0x00001fe0 Approximate Partition size: 3 MBs  Mounting partition 05 - VxWorks device Name "ID0/LUN0/Part5" Absolute sector: 0x00013820  Number of sectors: 0x00010fe0 Approximate Partition size: 33 MBs  Mounting partition 06 - VxWorks device Name "ID0/LUN0/Part6" Absolute sector: 0x00024820  Number of sectors: 0x00000fe0 Approximate Partition size: 1 MBs  Mounting partition 07 - VxWorks device Name "ID0/LUN0/Part7" Absolute sector: 0x00025820  Number of sectors: 0x000027e0 Approximate Partition size: 4 MBs   Mounting partition 00 - VxWorks device Name "ID4/LUN0/Part0" Absolute sector: 0x0000003f  Number of sectors: 0x00032f8e Approximate Partition size: 101 MBs  Mounting partition 01 - VxWorks device Name "ID4/LUN0/Part1" Absolute sector: 0x0003300c  Number of sectors: 0x0000fac5 Approximate Partition size: 31 MBs  Mounting partition 02 - VxWorks device Name "ID4/LUN0/Part2" Absolute sector: 0x00042b10  Number of sectors: 0x00098f28 Approximate Partition size: 305 MBs  Mounting partition 03 - VxWorks device Name "ID4/LUN0/Part3" Absolute sector: 0x000dba77  Number of sectors: 0x00065f5b Approximate Partition size: 203 MBs  Mounting partition 04 - VxWorks device Name "ID4/LUN0/Part4" Absolute sector: 0x00141a11  Number of sectors: 0x00065f5b Approximate Partition size: 203 MBs   ->  -> devs drv name   0 /null   1 /tyCo/0   1 /tyCo/1   1 /tyCo/2   1 /tyCo/3   6 eno:   7 /vio   3 ID0/LUN0/Part0   3 ID0/LUN0/Part1   3 ID0/LUN0/Part2   3 ID0/LUN0/Part3   3 ID0/LUN0/Part4   3 ID0/LUN0/Part5   3 ID0/LUN0/Part6   3 ID0/LUN0/Part7   3 ID4/LUN0/Part0   3 ID4/LUN0/Part1   3 ID4/LUN0/Part2   3 ID4/LUN0/Part3   3 ID4/LUN0/Part4 value = 0 = 0x0  -> dosFsConfigShow "ID4/LUN0/Part3"  device name:               ID4/LUN0/Part3 total number of sectors:   417627 bytes per sector:          512 media byte:                0xf8 # of sectors per cluster:  8 # of reserved sectors:     1 # of FAT tables:           2 # of sectors per FAT:      204 max # of root dir entries: 512 # of hidden sectors:       63 removable medium:          false disk change w/out warning: not enabled auto-sync mode:            not enabled long file names:           not enabled exportable file system:    not enabled lowercase-only filenames:  not enabled volume mode:               O_RDWR (read/write) available space:           213598208 bytes max avail. contig space:   213598208 bytes value = 0 = 0x0 ->    -> sp dosPartShowScsi, 0x01fff7f8 task spawned: id = 1fb5814, name = u0 value = 33249300 = 0x1fb5814 ->   +--------------------------------------+ | Master Boot Record - Partition Table | +--------------------------------------+--------------------+ | Partition Entry number 00   | Partition Entry offset 0x1be| +-----------------------------+-----------------------------+ | Status field = 0x80         | Primary (bootable) Partition| +-----------------------------+-----------------------------+ | Type 0x01: MSDOS Partition 12-bit FAT                     | +-----------------------------+-----------------------------+ | Partition start LCHS: Cylinder 0000, Head 001, Sector 01  | +-----------------------------------------------------------+ | Partition end   LCHS: Cylinder 0000, Head 063, Sector 32  | +-----------------------------------------------------------+ | Sectors offset from MBR partition 0x00000020              | +-----------------------------------------------------------+ | Number of sectors in partition 0x00003fe0                 | +-----------------------------------------------------------+ | Sectors offset from start of disk 0x00000020              | +-----------------------------------------------------------+    +--------------------------------------+ | Master Boot Record - Partition Table | +--------------------------------------+--------------------+ | Partition Entry number 01   | Partition Entry offset 0x1ce| +-----------------------------+-----------------------------+ | Status field = 0x00         | Non-bootable Partition      | +-----------------------------+-----------------------------+ | Type 0x05: MSDOS Extended Partition                       | +-----------------------------+-----------------------------+ | Partition start LCHS: Cylinder 0000, Head 000, Sector 01  | +-----------------------------------------------------------+ | Partition end   LCHS: Cylinder 0000, Head 063, Sector 32  | +-----------------------------------------------------------+ | Sectors offset from MBR partition 0x00004000              | +-----------------------------------------------------------+ | Number of sectors in partition 0x00024000                 | +-----------------------------------------------------------+ | Sectors offset from start of disk 0x00004000              | +-----------------------------------------------------------+    +--------------------------------------+ | Master Boot Record - Partition Table | +--------------------------------------+--------------------+ | Partition Entry number 02   | Partition Entry offset 0x1de| +-----------------------------+-----------------------------+ | Status field = 0x00         | Non-bootable Partition      | +-----------------------------+-----------------------------+ | Type 0x00: Empty (NULL) Partition                         | +-----------------------------+-----------------------------+    +--------------------------------------+ | Master Boot Record - Partition Table | +--------------------------------------+--------------------+ | Partition Entry number 03   | Partition Entry offset 0x1ee| +-----------------------------+-----------------------------+ | Status field = 0x00         | Non-bootable Partition      | +-----------------------------+-----------------------------+ | Type 0x00: Empty (NULL) Partition                         | +-----------------------------+-----------------------------+   +-----------------------------+ | Extended Partition Table 01 | +-----------------------------+-----------------------------+ | Partition Entry number 00   | Partition Entry offset 0x1be| +-----------------------------+-----------------------------+ | Status field = 0x00         | Non-bootable Partition      | +-----------------------------+-----------------------------+ | Type 0x01: MSDOS Partition 12-bit FAT                     | +-----------------------------+-----------------------------+ | Partition start LCHS: Cylinder 0000, Head 001, Sector 01  | +-----------------------------------------------------------+ | Partition end   LCHS: Cylinder 0000, Head 063, Sector 32  | +-----------------------------------------------------------+ | Sectors offset from the extended partition 0x00000020     | +-----------------------------------------------------------+ | Number of sectors in partition 0x000047e0                 | +-----------------------------------------------------------+ | Sectors offset from start of disk 0x00004020              | +-----------------------------------------------------------+   +-----------------------------+ | Extended Partition Table 01 | +-----------------------------+-----------------------------+ | Partition Entry number 01   | Partition Entry offset 0x1ce| +-----------------------------+-----------------------------+ | Status field = 0x00         | Non-bootable Partition      | +-----------------------------+-----------------------------+ | Type 0x05: MSDOS Extended Partition                       | +-----------------------------+-----------------------------+ | Partition start LCHS: Cylinder 0000, Head 000, Sector 01  | +-----------------------------------------------------------+ | Partition end   LCHS: Cylinder 0000, Head 063, Sector 32  | +-----------------------------------------------------------+ | Sectors offset from the extended partition 0x00004800     | +-----------------------------------------------------------+ | Number of sectors in partition 0x00006800                 | +-----------------------------------------------------------+ | Sectors offset from start of disk 0x00008800              | +-----------------------------------------------------------+   +-----------------------------+ | Extended Partition Table 01 | +-----------------------------+-----------------------------+

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -