Re: Accepting discard to free space from disk images

2015-02-09 Thread Roman Mamedov
On Mon, 09 Feb 2015 10:26:33 -0500 Devon B. devo...@virtualcomplete.com wrote: If you don't mind me asking, what version kernel are you running and are you using any special mount options? Well actually I did not claim I have working discard through 'loop', but your post made me curious. $

Re: Accepting discard to free space from disk images

2015-02-09 Thread Roman Mamedov
On Mon, 9 Feb 2015 20:42:56 +0500 Roman Mamedov r...@romanrm.net wrote: On Mon, 09 Feb 2015 10:26:33 -0500 Devon B. devo...@virtualcomplete.com wrote: If you don't mind me asking, what version kernel are you running and are you using any special mount options? Well actually I did not

Re: Accepting discard to free space from disk images

2015-02-09 Thread Roman Mamedov
On Mon, 09 Feb 2015 12:07:18 -0500 Devon B. devo...@virtualcomplete.com wrote: Thanks for your testing. I haven't tried 3.14. I tried on CentOS 6 box (2.6.32 - which is experimental) and Ubuntu 14.04 (3.13) and neither worked. So the question remains, what is the difference? Possibly a

Re: Accepting discard to free space from disk images

2015-02-09 Thread Devon B.
Thanks for your testing. I haven't tried 3.14. I tried on CentOS 6 box (2.6.32 - which is experimental) and Ubuntu 14.04 (3.13) and neither worked. So the question remains, what is the difference? Possibly a small difference between the 3.13 and 3.14 kernels, I don't think it is any of

Re: Accepting discard to free space from disk images

2015-02-08 Thread Roman Mamedov
On Mon, 09 Feb 2015 00:17:49 -0500 Devon B. devo...@virtualcomplete.com wrote: Looking to use btrfs with disk images that contain ext4, xfs, and other possible filesystems. One of my main concerns is reclaiming disk space when files are deleted on the disk image's filesystem. Using fstrim on

Accepting discard to free space from disk images

2015-02-08 Thread Devon B.
Looking to use btrfs with disk images that contain ext4, xfs, and other possible filesystems. One of my main concerns is reclaiming disk space when files are deleted on the disk image's filesystem. Using fstrim on the mount point of the disk image or mounting the disk image (loop) with discard