]> granicus.if.org Git - strace/commitdiff
quota: add dispatch of SYNC subcommands
authorEugene Syromyatnikov <evgsyr@gmail.com>
Wed, 21 Sep 2016 03:11:38 +0000 (06:11 +0300)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 27 Sep 2016 00:57:27 +0000 (00:57 +0000)
Q_XQUOTASYNC is no-op, but it does not require id/addr arguments anyway.

* quota.c (decode_cmd_data): Add Q_SYNC and Q_XQUOTASYNC to subcommand
dispatch switch since id/addr arguments for these subcommands are known
to be ignored.

quota.c

diff --git a/quota.c b/quota.c
index 03c1ecddb4944a5f1c82de9a5008b00b72cb8607..ee98f988e2b558940e0a3048e19c05acdb97fdae 100644 (file)
--- a/quota.c
+++ b/quota.c
@@ -216,6 +216,8 @@ decode_cmd_data(struct tcb *tcp, uint32_t id, uint32_t cmd, unsigned long data)
 {
        switch (cmd) {
        case Q_QUOTAOFF:
+       case Q_SYNC:
+       case Q_XQUOTASYNC:
                break;
        case Q_GETQUOTA:
                if (entering(tcp)) {