cbreak-black / invariantdisks Goto Github PK
View Code? Open in Web Editor NEWMaintains independent labels for disks
Maintains independent labels for disks
I'm not sure if this related to veracrypt or openzfsonosx or InvariantDisks. Please see openzfsonosx/zfs#575.
It returns here instead of removing the link:
@cbreak-black's analysis: "I wasn't able to associate it with any device. Caching. That's what would be needed. Some mapping of devices to serials for the purpose of removability. Anyway, the issue with caching would be that it would be runtime only, but I could re-read the data from existing symlinks on startup. (Not that that'd be too relevant, considering I can just as well delete every symlink and start fresh)."
Short version, it would be nice if there was a :1 in the by-serial subdirectory:
ls -l /var/run/disk/*|grep disk30
lrwxr-xr-x 1 root daemon 11 1 Dec 09:41 PCI0@0-XHC1@14-@e:0 -> /dev/disk30
lrwxr-xr-x 1 root daemon 13 1 Dec 09:41 PCI0@0-XHC1@14-@e:1 -> /dev/disk30s1
lrwxr-xr-x 1 root daemon 11 1 Dec 09:41 My_Book_114-WD-WMC1T207639 -> /dev/disk30
The disk in question is dual-labelled, with a protective MBR (type 0xEE) that Mac OS X sees with advanced format native 4k blocks, and with a GPT partition that vmware sees with 512 byte blocks (since VMWare Fusion shows raw disks as being 512 devices).
The result is that with
export ZPOOL_IMPORT_PATH=/var/run/disk/by-id:/var/run/disk/by-serial:/var/run/disk/by-path:/dev
zpool import -N pool
the by-path gets used, and it's not actually invariant... :(
pool: black
id: 3271856477414186805
state: ONLINE
action: The pool can be imported using its name or numeric identifier.
config:
black ONLINE
raidz1-0 ONLINE
/var/run/disk/by-path/PCI0@0-XHC1@14-@d:1 ONLINE
/var/run/disk/by-path/PCI0@0-XHC1@14-@e:1 ONLINE
/var/run/disk/by-path/PCI0@0-XHC1@14-@11:1 ONLINE
cache
/var/run/disk/by-id/media-D88B53A1-5C4E-8A4A-AE55-3052BF577C30
logs
disk39 ONLINE
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.