Looking at it now, the documentation is pretty thin, and I can’t find any examples on github either.
I think usage should look like below, then I’d use 'snap connect mincore:mysql-mincore` to enable read of mysql database files in their default location in /var/lib/mysql. Is that correct, and is including the DB directory in the plug enough to enable read of the directory and all files within the directory? (It isn’t possible to list the files by name, since there can be any number of them).
Snap doesn’t like the read attribute in the plug. I assume I have to list the files I want to read, or does this interface eliminate host fs isolation entirely?
Review Tools did not fully pass for this snap.
Specific measures might need to be taken on the Snap Store before this snap can be fully accepted.
- unknown attribute 'read' for interface 'system-backup' (plugs)
Can you tell me how I specify system files to be able to read?
summary: CLI utility to use mincore(2) system call
mincore is a utility to show how much of a file is cached in system memory. For each file in argv,
it will mmap the file and use the mincore() system to count file pages in and out of memory.
This can be useful to understand performance where buffer cache and IO is a factor, as in databases.