Home
last modified time | relevance | path

Searched refs:qtype (Results 1 – 25 of 47) sorted by relevance

12

/external/e2fsprogs/lib/support/
Dmkquota.c72 int quota_file_exists(ext2_filsys fs, enum quota_type qtype) in quota_file_exists() argument
78 if (qtype >= MAXQUOTAS) in quota_file_exists()
81 quota_get_qf_name(qtype, QFMT_VFS_V1, qf_name); in quota_file_exists()
94 void quota_set_sb_inum(ext2_filsys fs, ext2_ino_t ino, enum quota_type qtype) in quota_set_sb_inum() argument
98 inump = quota_sb_inump(fs->super, qtype); in quota_set_sb_inum()
101 qtype); in quota_set_sb_inum()
106 errcode_t quota_remove_inode(ext2_filsys fs, enum quota_type qtype) in quota_remove_inode() argument
117 qf_ino = *quota_sb_inump(fs->super, qtype); in quota_remove_inode()
135 quota_set_sb_inum(fs, 0, qtype); in quota_remove_inode()
166 enum quota_type qtype; in quota_write_inode() local
[all …]
Dquotaio.c45 const char *quota_type2name(enum quota_type qtype) in quota_type2name() argument
47 if (qtype >= MAXQUOTAS) in quota_type2name()
49 return extensions[qtype]; in quota_type2name()
52 ext2_ino_t quota_type2inum(enum quota_type qtype, in quota_type2inum() argument
55 switch (qtype) { in quota_type2inum()
125 enum quota_type qtype; in quota_inode_truncate() local
130 for (qtype = 0; qtype < MAXQUOTAS; qtype++) in quota_inode_truncate()
131 if (ino == quota_type2inum(qtype, fs->super)) in quota_inode_truncate()
134 if (qtype != MAXQUOTAS) { in quota_inode_truncate()
214 ext2_ino_t qf_ino, enum quota_type qtype, in quota_file_open() argument
[all …]
Dparse_qtype.c21 unsigned int qtype = *qtype_bits; in parse_quota_types() local
44 qtype &= ~QUOTA_USR_BIT; in parse_quota_types()
46 qtype |= QUOTA_USR_BIT; in parse_quota_types()
49 qtype &= ~QUOTA_GRP_BIT; in parse_quota_types()
51 qtype |= QUOTA_GRP_BIT; in parse_quota_types()
54 qtype &= ~QUOTA_PRJ_BIT; in parse_quota_types()
56 qtype |= QUOTA_PRJ_BIT; in parse_quota_types()
71 *qtype_bits = qtype; in parse_quota_types()
Dquotaio.h196 enum quota_type qtype, int fmt);
206 const char *quota_type2name(enum quota_type qtype);
207 ext2_ino_t quota_type2inum(enum quota_type qtype, struct ext2_super_block *);
226 errcode_t quota_write_inode(quota_ctx_t qctx, enum quota_type qtype);
231 errcode_t quota_remove_inode(ext2_filsys fs, enum quota_type qtype);
232 int quota_file_exists(ext2_filsys fs, enum quota_type qtype);
233 void quota_set_sb_inum(ext2_filsys fs, ext2_ino_t ino, enum quota_type qtype);
234 errcode_t quota_compare_and_update(quota_ctx_t qctx, enum quota_type qtype,
249 enum quota_type qtype) in quota_sb_inump() argument
251 switch (qtype) { in quota_sb_inump()
/external/f2fs-tools/fsck/
Dmkquota.c62 errcode_t quota_write_inode(struct f2fs_sb_info *sbi, enum quota_type qtype) in quota_write_inode() argument
71 if ((!qctx) || (!sb->qf_ino[qtype])) in quota_write_inode()
80 dict = qctx->quota_dict[qtype]; in quota_write_inode()
82 retval = quota_file_create(sbi, h, qtype); in quota_write_inode()
115 static inline qid_t get_qid(struct f2fs_inode *inode, enum quota_type qtype) in get_qid() argument
117 switch (qtype) { in get_qid()
149 enum quota_type qtype; in quota_init_context() local
159 for (qtype = 0; qtype < MAXQUOTAS; qtype++) { in quota_init_context()
160 ctx->quota_file[qtype] = NULL; in quota_init_context()
161 if (!sb->qf_ino[qtype]) in quota_init_context()
[all …]
Dquotaio.c39 const char *quota_type2name(enum quota_type qtype) in quota_type2name() argument
41 if (qtype >= MAXQUOTAS) in quota_type2name()
43 return extensions[qtype]; in quota_type2name()
98 enum quota_type qtype, int flags) in quota_file_open() argument
107 if (qtype >= MAXQUOTAS) in quota_file_open()
110 qf_ino = sb->qf_ino[qtype]; in quota_file_open()
113 if (qctx->quota_file[qtype]) { in quota_file_open()
114 h = qctx->quota_file[qtype]; in quota_file_open()
131 h->qh_type = qtype; in quota_file_open()
137 (h->qh_ops->check_file(h, qtype) == 0)) { in quota_file_open()
[all …]
Dquotaio.h194 enum quota_type qtype, int flags);
198 enum quota_type qtype);
206 const char *quota_type2name(enum quota_type qtype);
214 errcode_t quota_write_inode(struct f2fs_sb_info *sbi, enum quota_type qtype);
219 enum quota_type qtype, int *usage_inconsistent,
/external/e2fsprogs/e2fsck/
Dquota.c20 ext2_ino_t to_ino, enum quota_type qtype) in move_quota_inode() argument
55 quota_get_qf_name(qtype, QFMT_VFS_V1, qf_name); in move_quota_inode()
74 enum quota_type qtype; in e2fsck_hide_quota() local
83 for (qtype = 0; qtype < MAXQUOTAS; qtype++) { in e2fsck_hide_quota()
85 pctx.ino = *quota_sb_inump(sb, qtype); in e2fsck_hide_quota()
86 pctx.num = qtype; in e2fsck_hide_quota()
87 quota_ino = quota_type2inum(qtype, fs->super); in e2fsck_hide_quota()
90 if (move_quota_inode(fs, pctx.ino, quota_ino, qtype)) in e2fsck_hide_quota()
92 *quota_sb_inump(sb, qtype) = quota_ino; in e2fsck_hide_quota()
105 enum quota_type qtype; in e2fsck_validate_quota_inodes() local
[all …]
Dsuper.c269 enum quota_type qtype; in e2fsck_read_all_quotas() local
279 for (qtype = 0 ; qtype < MAXQUOTAS; qtype++) { in e2fsck_read_all_quotas()
280 qf_ino = *quota_sb_inump(ctx->fs->super, qtype); in e2fsck_read_all_quotas()
284 retval = quota_update_limits(ctx->qctx, qf_ino, qtype); in e2fsck_read_all_quotas()
297 enum quota_type qtype; in e2fsck_write_all_quotas() local
303 for (qtype = 0 ; qtype < MAXQUOTAS; qtype++) { in e2fsck_write_all_quotas()
304 pctx.num = qtype; in e2fsck_write_all_quotas()
305 pctx.errcode = quota_write_inode(ctx->qctx, 1 << qtype); in e2fsck_write_all_quotas()
/external/f2fs-tools/mkfs/
Df2fs_format.c190 enum quota_type qtype; in f2fs_prepare_super_block() local
450 for (qtype = 0; qtype < F2FS_MAX_QUOTAS; qtype++) { in f2fs_prepare_super_block()
451 if (!((1 << qtype) & quotatype_bits)) in f2fs_prepare_super_block()
453 sb->qf_ino[qtype] = cpu_to_le32(c.next_free_nid++); in f2fs_prepare_super_block()
455 qtype, c.next_free_nid - 1); in f2fs_prepare_super_block()
599 enum quota_type qtype; in f2fs_write_check_point_pack() local
754 for (qtype = 0, i = 1; qtype < F2FS_MAX_QUOTAS; qtype++) { in f2fs_write_check_point_pack()
755 if (sb->qf_ino[qtype] == 0) in f2fs_write_check_point_pack()
757 journal->nat_j.entries[i].nid = sb->qf_ino[qtype]; in f2fs_write_check_point_pack()
759 journal->nat_j.entries[i].ne.ino = sb->qf_ino[qtype]; in f2fs_write_check_point_pack()
[all …]
/external/dnsmasq/src/
Drfc1035.c431 int i, qtype, qclass, rdlen; in do_doctor() local
437 GETSHORT(qtype, p); in do_doctor()
442 if ((qclass == C_IN) && (qtype == T_A)) { in do_doctor()
475 int qtype, qclass, rdlen; in find_soa() local
487 GETSHORT(qtype, p); in find_soa()
492 if ((qclass == C_IN) && (qtype == T_SOA)) { in find_soa()
522 int i, j, qtype, qclass, aqtype, aqclass, ardlen, res, searched_soa = 0; in extract_addresses() local
546 GETSHORT(qtype, p); in extract_addresses()
553 if (qtype == T_PTR) { in extract_addresses()
608 if (qtype == T_A) { in extract_addresses()
[all …]
/external/iputils/ninfod/
Dninfod_core.c178 uint16_t qtype; member
187 .qtype = NI_QTYPE_NOOP,
193 .qtype = NI_QTYPE_SUPTYPES,
200 .qtype = NI_QTYPE_DNSNAME,
206 .qtype = NI_QTYPE_NODEADDR,
212 .qtype = NI_QTYPE_IPV4ADDR,
231 static __inline__ struct qtypeinfo *qtypeinfo_lookup(int qtype) in qtypeinfo_lookup() argument
233 if (qtype >= ARRAY_SIZE(qtypeinfo_table)) in qtypeinfo_lookup()
235 if (qtypeinfo_table[qtype].name == NULL) in qtypeinfo_lookup()
237 return &qtypeinfo_table[qtype]; in qtypeinfo_lookup()
[all …]
/external/ipsec-tools/src/racoon/
Dgetcertsbyname.c70 getnewci(qtype, keytag, algorithm, flags, certlen, cert) in getnewci() argument
71 int qtype, keytag, algorithm, flags, certlen; in getnewci()
81 res->ci_type = qtype;
214 int qtype, qclass, keytag, algorithm; local
273 GETSHORT(qtype, cp); /* QTYPE */
286 GETSHORT(qtype, cp); /* TYPE */
292 if (qtype != T_CERT) {
299 GETSHORT(qtype, cp); /* type */
314 qtype, keytag, algorithm, rdlength);
318 cur->ci_next = getnewci(qtype, keytag, algorithm,
/external/mdnsresponder/mDNSPosix/
DIdentify.c209 mDNSlocal mStatus StartQuery(DNSQuestion *q, char *qname, mDNSu16 qtype, const mDNSAddr *target, mD… in StartQuery() argument
217 q->qtype = qtype; in StartQuery()
237 mDNSlocal void DoOneQuery(DNSQuestion *q, char *qname, mDNSu16 qtype, const mDNSAddr *target, mDNSQ… in DoOneQuery() argument
239 mStatus status = StartQuery(q, qname, qtype, target, callback); in DoOneQuery()
249 mDNSlocal int DoQuery(DNSQuestion *q, char *qname, mDNSu16 qtype, const mDNSAddr *target, mDNSQuest… in DoQuery() argument
251 DoOneQuery(q, qname, qtype, target, callback); in DoQuery()
254 mprintf("%##s %s Trying multicast\n", q->qname.c, DNSTypeName(q->qtype)); in DoQuery()
255 DoOneQuery(q, qname, qtype, NULL, callback); in DoQuery()
258 mprintf("%##s %s *** No Answer ***\n", q->qname.c, DNSTypeName(q->qtype)); in DoQuery()
/external/e2fsprogs/misc/
Dtune2fs.c1108 enum quota_type qtype; in update_feature_set() local
1419 for (qtype = 0; qtype < MAXQUOTAS; qtype++) { in update_feature_set()
1420 if (qtype != PRJQUOTA) in update_feature_set()
1421 quota_enable[qtype] = QOPT_ENABLE; in update_feature_set()
1423 quota_enable[qtype] = QOPT_DISABLE; in update_feature_set()
1457 for (qtype = 0; qtype < MAXQUOTAS; qtype++) in update_feature_set()
1458 quota_enable[qtype] = QOPT_DISABLE; in update_feature_set()
1614 enum quota_type qtype; in handle_quota_options() local
1618 for (qtype = 0 ; qtype < MAXQUOTAS; qtype++) in handle_quota_options()
1619 if (quota_enable[qtype] != 0) in handle_quota_options()
[all …]
/external/e2fsprogs/lib/e2p/
Dls.c219 static const char *quota_type2prefix(enum quota_type qtype) in quota_type2prefix() argument
221 return quota_prefix[qtype]; in quota_type2prefix()
229 enum quota_type qtype; in list_super2() local
453 for (qtype = 0; qtype < MAXQUOTAS; qtype++) { in list_super2()
454 if (*quota_sb_inump(sb, qtype) != 0) in list_super2()
456 quota_type2prefix(qtype), in list_super2()
457 *quota_sb_inump(sb, qtype)); in list_super2()
/external/mdnsresponder/mDNSCore/
DuDNS.c179 …er: ERROR!! Null DNS server for %##s (%s) %d", q->qname.c, DNSTypeName(q->qtype), q->unansweredQue… in PenalizeDNSServer()
184 …ddr, mDNSVal16(q->qDNSServer->port), q->qDNSServer->domain.c, q, q->qname.c, DNSTypeName(q->qtype), in PenalizeDNSServer()
200 if (q->qtype == kDNSType_PTR) in PenalizeDNSServer()
206 LogInfo("PenalizeDNSServer: Penalizing question type %d", q->qtype); in PenalizeDNSServer()
236 …q->qname.c, DNSTypeName(q->qtype), &q->qDNSServer->addr, mDNSVal16(q->qDNSServer->port), q->qDNSSe… in PenalizeDNSServer()
273 …p, %##s (%s) changed to NULL, Interval %d", q, q->qname.c, DNSTypeName(q->qtype), q->ThisQInterval… in PenalizeDNSServer()
325 …info->domain.c, q->AuthInfo ? q->AuthInfo->domain.c : mDNSNULL, q->qname.c, DNSTypeName(q->qtype)); in GetAuthInfoForName_internal()
405 newinfo ? newinfo ->domain.c : mDNSNULL, q->qname.c, DNSTypeName(q->qtype)); in mDNS_SetSecretForDomain()
709 …, ptr, msg->data + AbsoluteMaxDNSMessageData, &question->qname, question->qtype, question->qclass); in putLLQ()
753 …eResponse: ERROR!!: question %##s (%s) tcp non-NULL", q->qname.c, DNSTypeName(q->qtype)); return; } in sendChallengeResponse()
[all …]
DmDNS.c122 #define FollowCNAME(q, rr, AddRecord) (AddRecord && (q)->qtype != kDNSType_CNAME && \
384 …Response: Generating negative response for question %##s (%s)", q->qname.c, DNSTypeName(q->qtype)); in GenerateNegativeResponse()
386 …MakeNegativeCacheRecord(m, &m->rec.r, &q->qname, q->qnamehash, q->qtype, q->qclass, 60, mDNSInterf… in GenerateNegativeResponse()
398 …q, q->qname.c, DNSTypeName(q->qtype), q->CNAMEReferrals, selfref ? " (Self-Referential)" : "", RRD… in AnswerQuestionByFollowingCNAME()
419 q, q->qname.c, DNSTypeName(q->qtype), q->CNAMEReferrals, RRDisplayString(m, rr)); in AnswerQuestionByFollowingCNAME()
430 q, q->qname.c, DNSTypeName(q->qtype), RRDisplayString(m, rr)); in AnswerQuestionByFollowingCNAME()
495 m->CurrentQuestion->qname.c, DNSTypeName(m->CurrentQuestion->qtype)); in AnswerInterfaceAnyQuestionsWithLocalAuthRecord()
528 m->CurrentQuestion->qname.c, DNSTypeName(m->CurrentQuestion->qtype)); in AnswerAllLocalQuestionsWithLocalAuthRecord()
2570 …mDNSu8 *newptr = putQuestion(query, *queryptr, limit - *answerforecast, &q->qname, q->qtype, (mDNS… in BuildQuestion()
2573 …Question: No more space in this packet for question %##s (%s)", q->qname.c, DNSTypeName(q->qtype)); in BuildQuestion()
[all …]
/external/bcc/examples/lua/
Dsock-parse-dns.lua43 local qtype = udp[2] -- Low octet from QTYPE
44 xadd(map[qtype], 1)
/external/libevent/test/
Dregress_dns.c235 const int qtype = req->questions[i]->type; in dns_server_request_cb() local
241 if (qtype == EVDNS_TYPE_A && in dns_server_request_cb()
248 } else if (qtype == EVDNS_TYPE_AAAA && in dns_server_request_cb()
256 } else if (qtype == EVDNS_TYPE_PTR && in dns_server_request_cb()
263 } else if (qtype == EVDNS_TYPE_PTR && in dns_server_request_cb()
271 } else if (qtype == EVDNS_TYPE_A && in dns_server_request_cb()
279 qtype, qclass, qname); in dns_server_request_cb()
1025 const int qtype = req->questions[i]->type; in be_getaddrinfo_server_cb() local
1032 TT_BLATHER(("Got question about %s, type=%d", qname, qtype)); in be_getaddrinfo_server_cb()
1034 if (qtype == EVDNS_TYPE_A && in be_getaddrinfo_server_cb()
[all …]
/external/mdnsresponder/mDNSShared/
Duds_daemon.h64 …rnal_start_browsing_for_service(mDNS *const m, const domainname *const type, DNS_TypeValues qtype);
65 …ernal_stop_browsing_for_service(mDNS *const m, const domainname *const type, DNS_TypeValues qtype);
Duds_daemon.c1768 req->sd, question->qname.c, DNSTypeName(question->qtype), AddRecord ? "Add" : "Rmv", in FoundInstance()
2326 request->u.resolve.qsrv.qtype = kDNSType_SRV; in handle_resolve_request()
2345 request->u.resolve.qtxt.qtype = kDNSType_TXT; in handle_resolve_request()
2415 …omain: question %##s (%s) SearchListIndex is -1", question->qname.c, DNSTypeName(question->qtype)); in AppendNewSearchDomain()
2421 …in: question %##s (%s) AppendSearchDoamins is 0", question->qname.c, DNSTypeName(question->qtype)); in AppendNewSearchDomain()
2447 …, Question name length %d", question->qnameOrig->c, DNSTypeName(question->qtype), sd->c, DomainNam… in AppendNewSearchDomain()
2455 …uestion with name %##s (%s), not trying anymore", question->qname.c, DNSTypeName(question->qtype)); in AppendNewSearchDomain()
2463 … while retrying with search domains", question->qname.c, DNSTypeName(question->qtype), (int)err); } in AppendNewSearchDomain()
2474 …stion with name %##s (%s), trying one last time", question->qname.c, DNSTypeName(question->qtype)); in AppendNewSearchDomain()
2495 …#define VALID_MSAD_SRV(Q) ((Q)->qtype == kDNSType_SRV && VALID_MSAD_SRV_TRANSPORT(SecondLabel(&(Q)… in SendAdditionalQuery()
[all …]
/external/curl/tests/python_dependencies/impacket/
Dnmb.py325 def addQuestion(self, question, qtype, qclass): argument
327 self.questions += question + pack('!HH',qtype,qclass)
479 def gethostbyname(self, nbname, qtype = TYPE_WORKSTATION, scope = None, timeout = 1): argument
480 return self.__queryname(nbname, self.__nameserver, qtype, scope, timeout)
500 def __queryname(self, nbname, destaddr, qtype, scope, timeout, retries = 0): argument
506 qn_label = encode_name(netbios_name, qtype, scope)
966 …for qtype in (TYPE_WORKSTATION, TYPE_CLIENT, TYPE_SERVER, TYPE_DOMAIN_MASTER, TYPE_DOMAIN_CONTROLL…
968 addrs = n.gethostbyname(name, qtype = qtype).get_addr_entries()
/external/scapy/scapy/layers/
Dinet6.py2282 qtype = getattr(pkt, "qtype")
2283 if qtype == 0: # NOOP
2344 qtype = 2 variable in ICMPv6NIQueryName
2349 qtype = 3 variable in ICMPv6NIQueryIPv6
2354 qtype = 4 variable in ICMPv6NIQueryIPv4
2389 qtype = 0 # We will decode it as string if not
2395 qtype = pkt.qtype
2397 qtype = x[0]
2402 if qtype == 2: # DNS name
2415 elif qtype in [3, 4]: # IPv4 or IPv6 addr
[all …]
/external/u-boot/net/
Ddns.c44 enum dns_query_type qtype = DNS_A_RECORD; in dns_send() local
82 *p++ = (unsigned char) qtype; /* Query Type */ in dns_send()

12