Skip to content

Instantly share code, notes, and snippets.

@akiradeveloper
Created October 13, 2017 11:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akiradeveloper/f096e764be07794f157bd11f0da8fb76 to your computer and use it in GitHub Desktop.
Save akiradeveloper/f096e764be07794f157bd11f0da8fb76 to your computer and use it in GitHub Desktop.
dmsetupに周りのuevent
dmsetupを実行するプロセスとは別に
udevadm monitor --kernel で待機させてそいつに観測させた
remove
KERNEL[4202.177671] remove /devices/virtual/block/dm-0 (block)
KERNEL[4202.205822] remove /kernel/slab/dmwb_buf_8 (slab)
KERNEL[4202.206786] remove /kernel/slab/bio-3 (slab)
KERNEL[4202.250279] remove /devices/virtual/bdi/251:0 (bdi)
KERNEL[4202.250776] remove /devices/virtual/block/dm-0 (block)
create
KERNEL[4226.692607] add /devices/virtual/bdi/251:0 (bdi)
KERNEL[4226.692852] add /devices/virtual/block/dm-0 (block)
KERNEL[4226.695092] add /kernel/slab/dmwb_buf_8 (slab)
KERNEL[4229.107766] add /kernel/slab/bio-3 (slab)
write or close // これはddの時
KERNEL[4229.108196] change /devices/virtual/block/dm-0 (block)
suspend -> resume
KERNEL[4271.409068] change /devices/virtual/block/dm-0 (block)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment