Displaying 1 result from an estimated 1 matches for "qk_id".
Did you mean:
k_id
2014 Oct 10
1
fixes for quota support on NetBSD
...->mount_path);
- fs_quota_root_disable(root, group);
- return 0;
- }
- }
+ if ((qh = quota_open(root->mount->mount_path)) == NULL) {
+ i_error("cannot open quota for %s: %m",
+ root->mount->mount_path);
+ fs_quota_root_disable(root, group);
+ return 0;
+ }
qk.qk_idtype = group ? QUOTA_IDTYPE_GROUP : QUOTA_IDTYPE_USER;
qk.qk_id = group ? root->gid : root->uid;
qk.qk_objtype = bytes ? QUOTA_OBJTYPE_BLOCKS : QUOTA_OBJTYPE_FILES;
- if (quota_get(root->qh, &qk, &qv) != 0) {
+ if (quota_get(qh, &qk, &qv) != 0) {
if (errno == ESRCH)...