Bug 572958

Summary: Can't create snapshots!
Product: [Fedora] Fedora Reporter: Mario Ceresa <mrceresa>
Component: btrfs-progsAssignee: Josef Bacik <josef>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: josef, mmahut
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-03-12 13:27:41 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Mario Ceresa 2010-03-12 13:23:26 UTC
Description of problem:
I'm unable to create a snapshot

Version-Release number of selected component (if applicable):
btrfs-progs-0.19.9.fc12
kernel-2.6.32.9-70.fc12

How reproducible:
Always

Steps to Reproduce:
1. Create a 300MB btrfs file, format and mount as a loop device:

dd if=/dev/zero of=btrfs.img count=300 bs=1M
losetup /dev/loop0 btrfs.img
mkfs.btrfs -L test /dev/loop0
mount /dev/loop0 /mnt/btrfs/

2. Create a snapshot:
btrfsctl -s snap0 /mnt/btrfs/
  
Actual results:
ioctl:: Inappropriate ioctl for device

Expected results:
Create snapshot

Additional info:
# modinfo btrfs
filename:       /lib/modules/2.6.32.9-70.fc12.i686/kernel/fs/btrfs/btrfs.ko
license:        GPL
srcversion:     515D00B63448802E7928F98
depends:        libcrc32c,zlib_deflate
vermagic:       2.6.32.9-70.fc12.i686 SMP mod_unload 686

As reported in 
http://www.linuxquestions.org/questions/linux-software-2/btrfs-filesystem-problems-with-btrfsctl-when-shrinking-and-defragmenting-fs-723177/

the problem might be a version mismatch between the kernel module and the utility package. But I don't know how to check the kernel module version!

Comment 1 Mario Ceresa 2010-03-12 13:27:41 UTC
I just noticed that there was a duplicate bug. I didn't find it neither looking with google nor with the bodhi "bug reports" function.

I'll close the bug, sorry for the noise.

Mario

*** This bug has been marked as a duplicate of bug 503726 ***