~daniel-mehrmann/e2fsprogs/master

« back to all changes in this revision

Viewing changes to debugfs/quota.c

  • Committer: Package Import Robot
  • Author(s): Michael Vogt
  • Date: 2014-10-27 09:44:27 UTC
  • mfrom: (8.4.29 sid)
  • Revision ID: package-import@ubuntu.com-20141027094427-g56dce6sg7pasdgm
Tags: 1.42.12-1ubuntu1
* Merge from Debian unstable.  Remaining changes:
  - debian/rules:
      Block pkg-create-dbgsym from operating on this package.
      Build without dietlibc-dev, which is in universe 
      Use the autotools-dev dh addon to update config.guess/config.sub for new
      ports.
  - debian/control:
      Regenerate with ./debian/rules debian/control

Show diffs side-by-side

added added

removed removed

Lines of Context:
93
93
static int list_quota_callback(struct dquot *dq, void *cb_data)
94
94
{
95
95
        printf("%8u   %8lld %8lld %8lld    %8lld %8lld %8lld\n",
96
 
               dq->dq_id, dq->dq_dqb.dqb_curspace,
97
 
               dq->dq_dqb.dqb_bsoftlimit, dq->dq_dqb.dqb_bhardlimit,
98
 
               dq->dq_dqb.dqb_curinodes,
99
 
               dq->dq_dqb.dqb_isoftlimit, dq->dq_dqb.dqb_ihardlimit);
 
96
               dq->dq_id, (long long)dq->dq_dqb.dqb_curspace,
 
97
               (long long)dq->dq_dqb.dqb_bsoftlimit,
 
98
               (long long)dq->dq_dqb.dqb_bhardlimit,
 
99
               (long long)dq->dq_dqb.dqb_curinodes,
 
100
               (long long)dq->dq_dqb.dqb_isoftlimit,
 
101
               (long long)dq->dq_dqb.dqb_ihardlimit);
100
102
        return 0;
101
103
}
102
104
 
103
105
void do_list_quota(int argc, char *argv[])
104
106
{
105
107
        errcode_t       retval;
106
 
        int             i, type;
107
 
        int             flags = 0;
 
108
        int             type;
108
109
        struct quota_handle *qh;
109
110
 
110
111
        if (load_quota_ctx(argv[0]))
132
133
 
133
134
void do_get_quota(int argc, char *argv[])
134
135
{
135
 
        errcode_t       retval;
136
 
        int             i, err, type;
137
 
        int             flags = 0;
 
136
        int             err, type;
138
137
        struct quota_handle *qh;
139
138
        struct dquot    *dq;
140
139
        qid_t           id;
165
164
        if (dq) {
166
165
                list_quota_callback(dq, NULL);
167
166
                ext2fs_free_mem(&dq);
168
 
        } else
 
167
        } else {
169
168
                com_err(argv[0], 0, "couldn't read quota record");
170
 
 
 
169
        }
171
170
}