Skip to content

Instantly share code, notes, and snippets.

Last active May 29, 2017 14:42
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save jreidinger/b37ae595b3c3d8519453cd3c9fc0f198 to your computer and use it in GitHub Desktop.
Demonstration of hard to debug caching problem when device is from no longer valid device graph
<?xml version="1.0"?>
require "storage"
env =, Storage::ProbeMode_READ_DEVICEGRAPH, Storage::TargetMode_DIRECT)
env.devicegraph_filename = "./disk-devicegraph.xml"
storage =
graph = storage.probed
disk = graph.all_disks.to_a.first
storage.probe # this cause invalidation of disk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment