Skip to contentSkip to conversation

pseudo block device as metadata and cache device

DISCUSSION Vivek Subbarao 2 participants 2 messages Jul 17, 2013 – Jul 22, 2013 Device mapper

lore
Share & tools
lore
#0 lore raw

Hi,

Can a pseudo block device create using mknod be used to hold metadata and cached blocks ?

Thank you,
Vivek S

maintainer
#1 lore raw
Quoted 7 lines · Vivek Subbarao

Hi,

Can a pseudo block device create using mknod be used to hold metadata and cached blocks ?

Thank you,
Vivek S

Hi

mknod doesn't create any devices, it creates a named REFERENCE to a device, not the device itself. The device itself is specified by major and minor number, and it must already exist, mknod doesn't create it.

Generally, you don't need to use mknod because on any modern Linux system, references to devices are created automatically by udev in the /dev/ directory.

Mikulas