Re: [lxc-devel] [PATCH] uidmap: fix writing multiple ranges

2013-03-11 Thread Serge Hallyn
Quoting Dwight Engen (dwight.en...@oracle.com): > The kernel requires a single atomic write for setting the /proc > idmap files. We were calling write(2) more than once when multiple > ranges were configured so instead build a buffer to pass in one write(2) > call. > > Change id types to unsigned

[lxc-devel] [PATCH] uidmap: fix writing multiple ranges

2013-03-11 Thread Dwight Engen
The kernel requires a single atomic write for setting the /proc idmap files. We were calling write(2) more than once when multiple ranges were configured so instead build a buffer to pass in one write(2) call. Change id types to unsigned long to handle large id mappings gracefully. Fix max id in