mirror of
				https://github.com/Zygo/bees.git
				synced 2025-11-03 19:50:34 +01:00 
			
		
		
		
	fs: yet another const
References to the search key do not need to be modified. Signed-off-by: Zygo Blaxell <bees@furryterror.org>
This commit is contained in:
		@@ -783,7 +783,7 @@ namespace crucible {
 | 
			
		||||
			// ioctl buffer size does not include search key header or buffer size
 | 
			
		||||
			ioctl_arg = ByteVector(buf_size + sizeof(btrfs_ioctl_search_args_v2));
 | 
			
		||||
			ioctl_ptr = ioctl_arg.get<btrfs_ioctl_search_args_v2>();
 | 
			
		||||
			ioctl_ptr->key = static_cast<btrfs_ioctl_search_key&>(*this);
 | 
			
		||||
			ioctl_ptr->key = static_cast<const btrfs_ioctl_search_key&>(*this);
 | 
			
		||||
			ioctl_ptr->buf_size = buf_size;
 | 
			
		||||
			// Don't bother supporting V1.  Kernels that old have other problems.
 | 
			
		||||
			int rv = ioctl(fd, BTRFS_IOC_TREE_SEARCH_V2, ioctl_arg.data());
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user