tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Devices.



On Sun 30 May 2021 at 19:30:04 -0400, John Franklin wrote:
> Consider, a USB device is inserted...
>   that has a mass storage block device...
>   encrypted with CGD...
>   hosting a partition map...
>   with an LVM PV in one of the partitions...
>   that contains three LVs.
> 
> How many device nodes are created here?

If I were to design a devfs for this, the resulting device nodes would
become a directory tree, for the given case something like

    sd0-+-cgd0-+-cgd0a-+-pv0-+-lv0
                             |-lv1
		             \-lv2

"Somehow" these nodes would be device nodes and directories at the same
time. That would be much nicer than having two nodes (with slightly
different names), one for the device node and one for the directory.

I don't think I've seen a devfs like that; there is a hierarchy in the
linux /sys/devices but it is determined by physical hardware attachment.

-Olaf.
-- 
___ Q: "What's an anagram of Banach-Tarski?"  -- Olaf "Rhialto" Seibert
\X/ A: "Banach-Tarski Banach-Tarski."         -- rhialto at falu dot nl

Attachment: signature.asc
Description: PGP signature



Home | Main Index | Thread Index | Old Index