Summary: | [net-fs/openafs-1.4.8-r1, net-fs/openafs-kernel-1.4.8-r1 OpenVZ support | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Petr Polezhaev <NightNord> |
Component: | New packages | Assignee: | Stefaan De Roeck (RETIRED) <stefaan> |
Status: | RESOLVED UPSTREAM | ||
Severity: | enhancement | CC: | net-fs |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
openafs-kernel-1.4.8-openvz.patch
openafs-1.4.8-r1-gentoo-scripts.patch |
Description
Petr Polezhaev
2009-02-25 22:37:20 UTC
Created attachment 183199 [details, diff]
openafs-kernel-1.4.8-openvz.patch
That patch don't virtualize libafs kernel module - it's too hard and useless, it just allows /afs from HN to be mount --bind'ed into CT. Two important things:
1) CT must be started before mount and bind must be completed into root/ (simfs), not private/.
2) After openafs-client restart on HN all binds will be blanked, so you must remount them every time on client restart (that's done by patch below)
Created attachment 183202 [details, diff]
openafs-1.4.8-r1-gentoo-scripts.patch
This patch modifies {configs,scripts}/openafs-client.
It adds to new operations for init.d script - unbind and restore.
unbind looks for `mount --binds` on /afs root (maybe it will be usefull to search for /afs[^[:space:]]* instead, if someone need only specific binds), saves them into /tmp/some/file/from/conf.d and unmounts them to make umount /afs possible.
Restore looks into /tmp/some/file/from/conf.d and runs each command-line to restore `mount --bind`'s to pre-stop state.
Reassigning to maintainer, CCing net-fs herd. openafs is lacking an active maintainer atm; get openvz stuff integrated upstream as for the init.d stuff, that looks like the last thing we want to do ... random mount management in non-baselayout init.d scripts |