summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSage Weil <sage.weil@dreamhost.com>2012-01-25 14:07:06 -0800
committerSage Weil <sage.weil@dreamhost.com>2012-01-25 14:07:06 -0800
commit2bc7105665fc95413efea027bd4c8cd61b55ceb5 (patch)
tree6c679cba937b554d455346412cc4713ac7cbf974
parent0b088eb5376a1b071104769e86e5eb8eae06c1ff (diff)
downloadceph-2bc7105665fc95413efea027bd4c8cd61b55ceb5.tar.gz
filestore: fix typo
Grr Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
-rw-r--r--src/os/FileStore.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/os/FileStore.cc b/src/os/FileStore.cc
index 6bf294f1b54..8999c75aa14 100644
--- a/src/os/FileStore.cc
+++ b/src/os/FileStore.cc
@@ -1191,7 +1191,7 @@ int FileStore::_detect_fs()
// snap_create and snap_destroy?
struct btrfs_ioctl_vol_args volargs;
- memset(&volargs, 0, sizefo(volargs));
+ memset(&volargs, 0, sizeof(volargs));
volargs.fd = fd;
strcpy(volargs.name, "sync_snap_test");
r = ::ioctl(fd, BTRFS_IOC_SNAP_CREATE, &volargs);
@@ -3141,7 +3141,7 @@ void FileStore::sync_entry()
if (btrfs_stable_commits) {
while (snaps.size() > 2) {
btrfs_ioctl_vol_args vol_args;
- memset(&vol_args, 0, sizefo(vol_args));
+ memset(&vol_args, 0, sizeof(vol_args));
vol_args.fd = 0;
snprintf(vol_args.name, sizeof(vol_args.name), COMMIT_SNAP_ITEM,
(long long unsigned)snaps.front());