version 1.115.2.1, 2014/08/10 06:56:58 |
version 1.116, 2014/06/12 21:39:45 |
Line 83 static int quota_handle_cmd_put(struct m |
|
Line 83 static int quota_handle_cmd_put(struct m |
|
struct quotactl_args *args); |
struct quotactl_args *args); |
static int quota_handle_cmd_cursorget(struct mount *, struct lwp *, |
static int quota_handle_cmd_cursorget(struct mount *, struct lwp *, |
struct quotactl_args *args); |
struct quotactl_args *args); |
static int quota_handle_cmd_del(struct mount *, struct lwp *, |
static int quota_handle_cmd_delete(struct mount *, struct lwp *, |
struct quotactl_args *args); |
struct quotactl_args *args); |
static int quota_handle_cmd_quotaon(struct mount *, struct lwp *, |
static int quota_handle_cmd_quotaon(struct mount *, struct lwp *, |
struct quotactl_args *args); |
struct quotactl_args *args); |
Line 198 quota_handle_cmd(struct mount *mp, struc |
|
Line 198 quota_handle_cmd(struct mount *mp, struc |
|
case QUOTACTL_CURSORGET: |
case QUOTACTL_CURSORGET: |
error = quota_handle_cmd_cursorget(mp, l, args); |
error = quota_handle_cmd_cursorget(mp, l, args); |
break; |
break; |
case QUOTACTL_DEL: |
case QUOTACTL_DELETE: |
error = quota_handle_cmd_del(mp, l, args); |
error = quota_handle_cmd_delete(mp, l, args); |
break; |
break; |
case QUOTACTL_CURSOROPEN: |
case QUOTACTL_CURSOROPEN: |
error = quota_handle_cmd_cursoropen(mp, l, args); |
error = quota_handle_cmd_cursoropen(mp, l, args); |
Line 427 quota_handle_cmd_put(struct mount *mp, s |
|
Line 427 quota_handle_cmd_put(struct mount *mp, s |
|
} |
} |
|
|
static int |
static int |
quota_handle_cmd_del(struct mount *mp, struct lwp *l, |
quota_handle_cmd_delete(struct mount *mp, struct lwp *l, |
struct quotactl_args *args) |
struct quotactl_args *args) |
{ |
{ |
struct ufsmount *ump = VFSTOUFS(mp); |
struct ufsmount *ump = VFSTOUFS(mp); |
Line 435 quota_handle_cmd_del(struct mount *mp, s |
|
Line 435 quota_handle_cmd_del(struct mount *mp, s |
|
id_t kauth_id; |
id_t kauth_id; |
int error; |
int error; |
|
|
KASSERT(args->qc_op == QUOTACTL_DEL); |
KASSERT(args->qc_op == QUOTACTL_DELETE); |
qk = args->u.del.qc_key; |
qk = args->u.remove.qc_key; |
|
|
kauth_id = qk->qk_id; |
kauth_id = qk->qk_id; |
if (kauth_id == QUOTA_DEFAULTID) { |
if (kauth_id == QUOTA_DEFAULTID) { |
Line 455 quota_handle_cmd_del(struct mount *mp, s |
|
Line 455 quota_handle_cmd_del(struct mount *mp, s |
|
goto err; |
goto err; |
#ifdef QUOTA2 |
#ifdef QUOTA2 |
if (ump->um_flags & UFS_QUOTA2) { |
if (ump->um_flags & UFS_QUOTA2) { |
error = quota2_handle_cmd_del(ump, qk); |
error = quota2_handle_cmd_delete(ump, qk); |
} else |
} else |
#endif |
#endif |
panic("quota_handle_cmd_get: no support ?"); |
panic("quota_handle_cmd_get: no support ?"); |