MCPcopy Create free account
hub / github.com/containers/bubblewrap / count_mounts

Function count_mounts

bind-mount.c:188–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186}
187
188static int
189count_mounts (MountInfoLine *line)
190{
191 MountInfoLine *child;
192 int res = 0;
193
194 if (!line->covered)
195 res += 1;
196
197 child = line->first_child;
198 while (child != NULL)
199 {
200 res += count_mounts (child);
201 child = child->next_sibling;
202 }
203
204 return res;
205}
206
207static MountInfo *
208collect_mounts (MountInfo *info, MountInfoLine *line)

Callers 1

parse_mountinfoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected