MCPcopy Create free account
hub / github.com/F-Stack/f-stack / quota_check_path

Function quota_check_path

tools/libutil/quotafile.c:250–258  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

248}
249
250int
251quota_check_path(const struct quotafile *qf, const char *path)
252{
253 struct stat st;
254
255 if (stat(path, &st) == -1)
256 return (-1);
257 return (st.st_dev == qf->dev);
258}
259
260int
261quota_maxid(struct quotafile *qf)

Callers

nothing calls this directly

Calls 1

statClass · 0.70

Tested by

no test coverage detected