Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 260310 - [net-fs/openafs-1.4.8-r1, net-fs/openafs-kernel-1.4.8-r1 OpenVZ support
Summary: [net-fs/openafs-1.4.8-r1, net-fs/openafs-kernel-1.4.8-r1 OpenVZ support
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Stefaan De Roeck (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-25 22:37 UTC by Petr Polezhaev
Modified: 2010-06-21 23:17 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
openafs-kernel-1.4.8-openvz.patch (openafs-kernel-1.4.8-openvz.patch,6.98 KB, patch)
2009-02-25 22:39 UTC, Petr Polezhaev
Details | Diff
openafs-1.4.8-r1-gentoo-scripts.patch (openafs-1.4.8-r1-gentoo-scripts.patch,3.90 KB, patch)
2009-02-25 22:51 UTC, Petr Polezhaev
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Polezhaev 2009-02-25 22:37:20 UTC
This a patch to make openafs-kernel buildable on openvz system (it changes build-system and uses #if's to make sure that it will not break other builds).

Patch was posted to upstream and to openvz bugzilla.

There is also a patch on openafs-gentoo patchset, which contains init.d scripts, to make them respect mount --bind's on containers.

Reproducible: Always

Steps to Reproduce:
Comment 1 Petr Polezhaev 2009-02-25 22:39:18 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)
Comment 2 Petr Polezhaev 2009-02-25 22:51:22 UTC
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.
Comment 3 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-02-27 12:34:56 UTC
Reassigning to maintainer, CCing net-fs herd.
Comment 4 SpanKY gentoo-dev 2010-06-21 23:17:29 UTC
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