Skip to content

Commit

Permalink
Add base lxcfs.c
Browse files Browse the repository at this point in the history
So far it just does getattr and readdir for /cgroup/*

Signed-off-by: Serge Hallyn <[email protected]>
  • Loading branch information
hallyn committed Dec 12, 2014
1 parent 2183082 commit 758ad80
Show file tree
Hide file tree
Showing 5 changed files with 702 additions and 2 deletions.
25 changes: 25 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
.deps/
INSTALL
Makefile
Makefile.in
aclocal.m4
autom4te.cache/
cgmanager.o
compile
config.guess
config.h
config.h.in
config.log
config.status
config.sub
configure
depcomp
install-sh
libtool
ltmain.sh
lxcfs
lxcfs.o
m4/
missing
stamp-h1
lxcfs.1
32 changes: 32 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,35 @@ AM_LDFLAGS = $(DBUS_LIBS) $(NIH_LIBS) $(NIH_DBUS_LIBS) $(CGMANAGER_LIBS) $(FUSE_
bin_PROGRAMS = lxcfs

lxcfs_SOURCES = lxcfs.c cgmanager.c

man_MANS = lxcfs.1

lxcfs.1: lxcfs lxcfs.man.add
$(HELP2MAN) -n "Set up cgroup fs for containers" --no-discard-stderr -s 1 -I lxcfs.man.add -N ./lxcfs > lxcfs.1

distclean:
rm -rf .deps/ \
INSTALL \
Makefile \
Makefile.in \
aclocal.m4 \
autom4te.cache/ \
cgmanager.o \
compile \
config.guess \
config.h \
config.h.in \
config.log \
config.status \
config.sub \
configure \
depcomp \
install-sh \
libtool \
ltmain.sh \
lxcfs \
lxcfs.1 \
lxcfs.o \
m4/ \
missing \
stamp-h1
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,13 @@ FUSE filesystem for LXC, offering the following features:
- meminfo
- stat
- uptime

### Usage

The recommended command to run lxcfs is:

sudo mkdir -p /var/lib/lxcfs
sudo lxcfs -s -f -d -o allow_other /var/lib/lxcfs

We recommend -s to avoid threading; -o allow_other is needed to
allow users other than root to use the filesystem.
Loading

0 comments on commit 758ad80

Please sign in to comment.