Lines Matching refs:mountinfo
86 char *mountinfo[] = {
171 for (i = 0; i < sizeof(mountinfo) / sizeof(mountinfo[0]); i++) {
172 if (fprintf(fp1, "%s\n", mountinfo[i]) < 0) {
173 lxc_error("Could not write \"%s\" to temporary file.", mountinfo[i]);
181 for (i = 0; i < sizeof(mountinfo) / sizeof(mountinfo[0]); i++) {
182 if (strcmp(mountinfo[i], "24 0 8:2 / / rw - rootfs rootfs rw,size=1004396k,nr_inodes=251099") == 0)
184 if (fprintf(fp2, "%s\n", mountinfo[i]) < 0) {
185 lxc_error("Could not write \"%s\" to temporary file.", mountinfo[i]);
192 if (mount(tmpf1, "/proc/self/mountinfo", NULL, MS_BIND, 0) < 0) {
193 lxc_error("%s\n", "Could not overmount \"/proc/self/mountinfo\".");
199 if (mount(tmpf2, "/proc/self/mountinfo", NULL, MS_BIND, 0) < 0) {
200 lxc_error("%s\n", "Could not overmount \"/proc/self/mountinfo\".");