[PATCH] read/write volumes in dynroot /afs
Peter Collingbourne
peter-arla at peterc123.dyndns.org
Sat Apr 9 18:40:02 CEST 2005
Hi
This small patch creates symlinks for readwrite access to AFS space in the
form /afs/.cellname in the dynroot file space. I have tested it against
Linux only, version 0.36.2-11 (Debian) but I can't see any platform
dependencies and the patch applies cleanly to the latest CVS version.
--
Peter
--- dynroot.c.orig 2003-01-20 14:21:02.000000000 +0000
+++ dynroot.c 2005-04-09 16:50:05.146662045 +0100
@@ -109,10 +109,18 @@
static int
create_cell_entry_func (const cell_entry *cell, void *arg)
{
+ int ret;
+ char rwname[STORE_CELLNAMELENGTH+1];
+
if (!cell_dynroot(cell))
return 0;
- return create_entry_func(cell->name, cell->id,
- DYNROOT_ALIAS_READONLY, arg);
+ ret = create_entry_func(cell->name, cell->id,
+ DYNROOT_ALIAS_READONLY, arg);
+ if (ret != 0)
+ return ret;
+ snprintf(rwname, STORE_CELLNAMELENGTH+1, ".%s", cell->name);
+ return create_entry_func(rwname, cell->id,
+ DYNROOT_ALIAS_READWRITE, arg);
}
/*
More information about the Arla-drinkers
mailing list