Brian Inglis writes:
> On 2019-12-14 11:38, Achim Gratz wrote:
>
> [Sorry, thought I'd sent this, it was backgrounded!]
>
> What are the distinctions between /dev/sd[a-c][a-z], /dev/sdd[a-z], and
> /dev/sd[a-z] appearing in parts of devices.cc?
/dev/sd is the base name for disks, letters denote di
On 2019-12-14 11:38, Achim Gratz wrote:
[Sorry, thought I'd sent this, it was backgrounded!]
What are the distinctions between /dev/sd[a-c][a-z], /dev/sdd[a-z], and
/dev/sd[a-z] appearing in parts of devices.cc?
s[6] == 'd'?
Better:
> if (len > 7 && len < 12 && s[7] == 'd'
- if (len > 7 &&
Brian Inglis writes:
> On 2019-12-14 11:38, Achim Gratz wrote:
>
> s[6] == 'd'?
Indeed.
>> if (len > 7 && len < 12 && s[7] == 'd'
> - if (len > 7 && len < 12 && s[7] == 'd'
> + if (len > 7 && len < 12 && s[DP_LEN - 1] == 'd'
Yes, that's better.
Regards,
Achim.
--
+<[Q+ Matrix-12 WAVE#46