[PATCH] btrfs: move struct btrfs_ioctl_defrag_range_args from ctree.h to linux/btrfs.h

2014-10-07 Thread Marios Titas
the btrfs-progs headers and the kernel headers. Signed-off-by: Marios Titas red...@gmx.com --- fs/btrfs/ctree.h | 31 --- include/uapi/linux/btrfs.h | 31 +++ 2 files changed, 31 insertions(+), 31 deletions(-) diff --git a/fs/btrfs

Limits of BTRFS_IOC_LOGICAL_INO BTRFS_IOC_INO_PATHS

2014-02-24 Thread Marios Titas
I was experimenting with the BTRFS_IOC_LOGICAL_INO BTRFS_IOC_INO_PATHS ioctls and noticed that there are some limits in the kernel that limit the number or results they return. For example, for BTRFS_IOC_LOGICAL_INO, the structure that will hold the results can be up to 65536 bytes. Are there any

Re: check for reflink capability and for shared data

2013-08-26 Thread Marios Titas
On Sat, Aug 24, 2013 at 12:09 PM, Thomas Koch tho...@koch.ro wrote: - check whether two files share the same data on disk, i.e. one has been created by cp --reflink of the other? How about inspecting the output of filefrag -v $filename? For example, you could filter out with grep all lines

Re: [PATCH] Btrfs: update inode flags when renaming

2013-02-22 Thread Marios Titas
a file with the noCow flag to a directory without the noCow flag, the file is now without the flag, but after remount, we'll find the file's noCow flag comes back. This is because we missed a proper inode update after inheriting parent directory's flags, Reported-by: Marios Titas redneb8

Re: [PATCH] Btrfs: update inode flags when renaming

2013-02-22 Thread Marios Titas
16:40:35 +0800, Liu Bo wrote: On Fri, Feb 22, 2013 at 03:32:50AM -0500, Marios Titas wrote: Sorry, but the bug persists even with the above patch. touch test chattr +C test lsattr test mv test test2 lsattr test2 In the above scenario test2 will not have the C flag. What do you expect

bug: per file cow flag is lost when renaming

2013-01-28 Thread Marios Titas
Try this: touch test chattr +C test lsattr test mv test test2 lsattr test2 The original file (test) will have the C flag but when renamed the flag disappears. If the volume is unmounted and then mounted again the flag reappears. However, if the file is modified in any way

Re: btrfs send/receive symlink bug

2012-11-14 Thread Marios Titas
On Wed, Nov 14, 2012 at 5:34 PM, David Arendt ad...@prnet.org wrote: Hi, I am using kernel 3.7.0-rc5 and latest btrfs-progs git. I am trying btrfs send/receive. When I have a filesystem containing a symlink pointing to a nonexistent destination or a destination created after the symlink was

Re: Cannot create subvolume with quota enabled

2012-09-11 Thread Marios Titas
On Tue, Sep 11, 2012 at 2:19 AM, Arne Jansen sensi...@gmx.net wrote: instead of applying my patch, could you please just revert commit 5986802c2fcc754040bb7ed95f30bb16c4a843b7 Author: Dan Carpenter dan.carpen...@oracle.com Date: Mon Jul 30 02:16:10 2012 -0600 Btrfs: fix some error

Re: Cannot create subvolume with quota enabled

2012-09-10 Thread Marios Titas
On Fri, Sep 7, 2012 at 6:04 PM, Arne Jansen sensi...@gmx.net wrote: Hi Andreas, Thanks for giving quota a try. I sent a fix separately with the subject [PATCH] Btrfs: btrfs_qgroup_inherit wrongly returns an error Could you please see if it fixes the problem? Even with this patch I still

Re: No/bad auto-detection of fs type for small volumes (related to mixed metadata/data?)

2012-07-25 Thread Marios Titas
On Wed, Jul 25, 2012 at 5:09 AM, cwillu cwi...@cwillu.com wrote: On Tue, Jul 24, 2012 at 6:39 PM, Marios Titas redneb8...@gmail.com wrote: When I create a btrfs volume of size strictly less than 256 MiB then if I do mount /dev/sdb1 /mnt/test the kernel tries unsuccessfully to do the mount

No/bad auto-detection of fs type for small volumes (related to mixed metadata/data?)

2012-07-24 Thread Marios Titas
When I create a btrfs volume of size strictly less than 256 MiB then if I do mount /dev/sdb1 /mnt/test the kernel tries unsuccessfully to do the mount with many other file systems before successfully trying with btrfs. For volumes of size larger than or equal to 256 MiB it just mounts the

Re: Feature request: true RAID-1 mode

2012-06-20 Thread Marios Titas
On Wed, Jun 20, 2012 at 12:27 PM, H. Peter Anvin h...@zytor.com wrote: Yet another boot loader support request. Right now btrfs' definition of RAID-1 with more than two devices is a bit unorthodox: it stores on any two drives.  True RAID-1 would instead store N copies on each of N devices,

Re: [PATCH 00/21] Btrfs: restriper

2012-01-08 Thread Marios Titas
I tried this for many different scenarios and it seems to work pretty well. I only ran into one problematic case: If you remove a device from a multidevice filesystem it crashes. Here's how to reproduce it: truncate -s1g /tmp/test1 truncate -s1g /tmp/test2 losetup /dev/loop1 /tmp/test1 losetup

Re: [PATCH 0/2] btrfs: allow cross-subvolume BTRFS_IOC_CLONE

2012-01-08 Thread Marios Titas
On Fri, Jan 6, 2012 at 12:57, David Sterba d...@jikos.cz wrote: On Fri, Jan 06, 2012 at 02:04:12PM +0200, Konstantinos Skarlatos wrote: Me too wants cp --reflink across subvolumes. Please make this feature available to us, as its a poor man's dedupe and would give big space savings for many