]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
client: fix wrong mtime/atime bug
authorYehuda Sadeh-Weinraub <yehuda@yehuda.infit.com>
Wed, 19 Mar 2008 12:20:01 +0000 (14:20 +0200)
committerYehuda Sadeh-Weinraub <yehuda@yehuda.infit.com>
Wed, 19 Mar 2008 12:20:01 +0000 (14:20 +0200)
src/kernel/mds_client.c

index 9d411e085631a92cdc7ddd2bb912b024fb71df5a..ddab788f3c18e1435097ad0c262cea517199adf8 100644 (file)
@@ -1178,6 +1178,9 @@ void send_cap_ack(struct ceph_mds_client *mdsc, __u64 ino, int caps,
                return;
 
        fc = msg->front.iov_base;
+
+       memset(fc, 0, sizeof(*fc));
+
        fc->op = cpu_to_le32(CEPH_CAP_OP_ACK);  /* misnomer */
        fc->seq = cpu_to_le64(seq);
        fc->caps = cpu_to_le32(caps);