diff --git a/snapper/BcachefsUtils.cc b/snapper/BcachefsUtils.cc index 2150b365..e9d0d9f8 100644 --- a/snapper/BcachefsUtils.cc +++ b/snapper/BcachefsUtils.cc @@ -78,11 +78,11 @@ namespace snapper create_subvolume(int fddst, const string& name) { struct bch_ioctl_subvolume args = { - .flags = 0, - .dirfd = (__u32) fddst, - .mode = 0777, - .dst_ptr = (__u64) name.c_str(), - .src_ptr = 0, + flags : 0, + dirfd : (__u32) fddst, + mode : 0777, + dst_ptr : (__u64) name.c_str(), + src_ptr : 0, }; if (ioctl(fddst, BCH_IOCTL_SUBVOLUME_CREATE, &args) < 0) @@ -98,11 +98,11 @@ namespace snapper flags |= BCH_SUBVOL_SNAPSHOT_RO; // TODO does not work struct bch_ioctl_subvolume args = { - .flags = flags, - .dirfd = (__u32) fddst, - .mode = 0777, - .dst_ptr = (__u64) name.c_str(), - .src_ptr = (__u64) subvolume.c_str(), // TODO use fd instead of subvolume + flags : flags, + dirfd : (__u32) fddst, + mode : 0777, + dst_ptr : (__u64) name.c_str(), + src_ptr : (__u64) subvolume.c_str(), // TODO use fd instead of subvolume }; if (ioctl(fddst, BCH_IOCTL_SUBVOLUME_CREATE, &args) < 0) @@ -114,11 +114,11 @@ namespace snapper delete_subvolume(int fd, const string& name) { struct bch_ioctl_subvolume args = { - .flags = 0, - .dirfd = (__u32) fd, - .mode = 0777, - .dst_ptr = (__u64) name.c_str(), - .src_ptr = 0, + flags : 0, + dirfd : (__u32) fd, + mode : 0777, + dst_ptr : (__u64) name.c_str(), + src_ptr : 0, }; if (ioctl(fd, BCH_IOCTL_SUBVOLUME_DESTROY, &args) < 0)