|
Android-cuttlefish cvd tool
|
#include <stdio.h>#include <errno.h>#include <string.h>#include <unistd.h>#include <stdlib.h>#include <time.h>#include <sys/types.h>#include <sys/stat.h>#include <sys/file.h>#include <assert.h>#include "common.h"#include "quotaio.h"
Classes | |
| struct | disk_dqheader |
Functions | |
| const char * | quota_type2name (enum quota_type qtype) |
| void | update_grace_times (struct dquot *q) |
| static unsigned int | quota_write_nomount (struct quota_file *qf, long offset, void *buf, unsigned int size) |
| static unsigned int | quota_read_nomount (struct quota_file *qf, long offset, void *buf, unsigned int size) |
| errcode_t | quota_file_open (struct f2fs_sb_info *sbi, struct quota_handle *h, enum quota_type qtype, int flags) |
| errcode_t | quota_file_create (struct f2fs_sb_info *sbi, struct quota_handle *h, enum quota_type qtype) |
| errcode_t | quota_file_close (struct f2fs_sb_info *sbi, struct quota_handle *h, int update_filesize) |
| struct dquot * | get_empty_dquot (void) |
Variables | |
| static const char *const | extensions [MAXQUOTAS] |
| int | cur_qtype = -1 |
| u32 | qf_last_blkofs [MAXQUOTAS] = {0, 0, 0} |
| enum qf_szchk_type_t | qf_szchk_type [MAXQUOTAS] |
| u64 | qf_maxsize [MAXQUOTAS] |
| struct dquot * get_empty_dquot | ( | void | ) |
| errcode_t quota_file_close | ( | struct f2fs_sb_info * | sbi, |
| struct quota_handle * | h, | ||
| int | update_filesize | ||
| ) |
| errcode_t quota_file_create | ( | struct f2fs_sb_info * | sbi, |
| struct quota_handle * | h, | ||
| enum quota_type | qtype | ||
| ) |
| errcode_t quota_file_open | ( | struct f2fs_sb_info * | sbi, |
| struct quota_handle * | h, | ||
| enum quota_type | qtype, | ||
| int | flags | ||
| ) |
|
static |
| const char * quota_type2name | ( | enum quota_type | qtype | ) |
Convert type of quota to written representation
|
static |
| void update_grace_times | ( | struct dquot * | q | ) |
| int cur_qtype = -1 |
|
static |
quotaio.c
Generic IO operations on quotafiles Jan Kara jack@.nosp@m.suse.nosp@m..cz - sponsored by SuSE CR Aditya Kali adity.nosp@m.akal.nosp@m.i@goo.nosp@m.gle..nosp@m.com - Ported to e2fsprogs Hyojun Kim hyoju.nosp@m.n@go.nosp@m.ogle..nosp@m.com - Ported to f2fs-tools
| enum qf_szchk_type_t qf_szchk_type[MAXQUOTAS] |