> On second thought, I have a vague idea... Could you please just add > something to the output, i.e, change lines 124/125 from > > printf ("%5d %5d %9llu sd%c\n", > 8, (dev_name - 'a') * 16, size >> 10, dev_name); > > to > > printf ("%5d %5d %9llu sd%c (%lu)\n", > 8, (dev_name - 'a') * 16, size >> 10, dev_name, > (unsigned long) context); > > and just compile and run the testcase again?
Here's the output (and /proc/partitions for comparison) from today: $ ./proc_partition major minor #blocks name win-mounts 8 0 500107608 sda (283) 8 1 102400 sda1 8 2 488280064 sda2 C:\ 8 16 1000204632 sdb (301) 8 17 1000202240 sdb1 D:\ 8 32 1000204632 sdc (302) 8 33 1000202240 sdc1 D:\ 8 48 1000204632 sdd (314) 8 49 1000202240 sdd1 G:\ 8 64 1000204632 sde (315) 8 65 1000202240 sde1 G:\ 8 80 1000204632 sdf (329) 8 81 1000202240 sdf1 I:\ 8 96 1000204632 sdg (330) 8 97 1000202240 sdg1 I:\ 8 112 234431064 sdh (340) 8 113 234428416 sdh1 F:\ 8 128 234431064 sdi (341) 8 129 234428416 sdi1 F:\ DeviceIoControl (Harddisk5\Partition0, IOCTL_DISK_GET_PARTITION_INFO{_EX}) 5 8 144 0 sdj (352) $ cat /proc/partitions major minor #blocks name win-mounts 8 0 500107608 sda 8 1 102400 sda1 8 2 488280064 sda2 C:\ 8 16 1000204632 sdb 8 17 1000202240 sdb1 D:\ 8 16 1000204632 sdb 8 17 1000202240 sdb1 D:\ 8 32 1000204632 sdc 8 33 1000202240 sdc1 G:\ 8 32 1000204632 sdc 8 33 1000202240 sdc1 G:\ 8 48 1000204632 sdd 8 49 1000202240 sdd1 I:\ 8 48 1000204632 sdd 8 49 1000202240 sdd1 I:\ 8 64 234431064 sde 8 65 234428416 sde1 F:\ 8 64 234431064 sde 8 65 234428416 sde1 F:\ 8 80 0 sdf Anton Lavrentiev Contractor NIH/NLM/NCBI -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple