Re: mount a multi-device filesystem using a loopback device

2011-09-06 Thread Jeff Liu
On 09/07/2011 02:31 PM, Li Zefan wrote: Is it a bug? or Am I missing something? You need to run this before mounting the devices: # btrfs device scan Thank you, it works by executing device scan. -Jeff -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body

Re: mount a multi-device filesystem using a loopback device

2011-09-07 Thread Jeff Liu
On 09/07/2011 12:37 PM, cwillu wrote: 1. Create and format two images, the 1st in 400Mbytes, and 2nd in 286Mbytes. root@pibroch:/btrfs-progs# ls -lh /usr/src/linux-3.0/img* -rw-r--r-- 1 jeff jeff 400M 2011-09-07 12:00 /usr/src/linux-3.0/img0 -rw-r--r-- 1 jeff jeff 286M 2011-09-07 12:00 /usr/src/

Re: mount a multi-device filesystem using a loopback device

2011-09-07 Thread Jeff Liu
On 09/08/2011 01:32 PM, C Anthony Risinger wrote: On Wed, Sep 7, 2011 at 1:44 AM, Jeff Liu wrote: On 09/07/2011 12:37 PM, cwillu wrote: 1. Create and format two images, the 1st in 400Mbytes, and 2nd in 286Mbytes. root@pibroch:/btrfs-progs# ls -lh /usr/src/linux-3.0/img* -rw-r--r-- 1 jeff

[PATCH] btrfs: trivial fix, a potential memory leak in btrfs_parse_early_options()

2011-09-12 Thread Jeff Liu
Signed-off-by: Jie Liu --- fs/btrfs/super.c | 10 -- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c index 15634d4..16f31e1 100644 --- a/fs/btrfs/super.c +++ b/fs/btrfs/super.c @@ -406,7 +406,7 @@ static int btrfs_parse_early_options(

Re: [PATCH] btrfs: trivial fix, a potential memory leak in btrfs_parse_early_options()

2011-09-13 Thread Jeff Liu
On 09/14/2011 01:40 PM, Li Zefan wrote: > 14:06, Jeff Liu wrote: >> Signed-off-by: Jie Liu >> >> --- >> fs/btrfs/super.c | 10 -- >> 1 files changed, 8 insertions(+), 2 deletions(-) >> >> diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c

[PATCH V2] btrfs: trivial fix, a potential memory leak in btrfs_parse_early_options()

2011-09-15 Thread Jeff Liu
Signed-off-by: Jie Liu --- fs/btrfs/super.c | 10 -- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c index 15634d4..16f31e1 100644 --- a/fs/btrfs/super.c +++ b/fs/btrfs/super.c @@ -406,7 +406,7 @@ static int btrfs_parse_early_options(c

Re: [PATCH 2/2] Btrfs: don't change inode flag of the dest clone file

2011-09-15 Thread Jeff Liu
Add CC to Coreutils, cp --reflink performs btrfs clone operation. Thanks, -Jeff On 09/15/2011 07:43 PM, David Sterba wrote: > On Wed, Sep 14, 2011 at 01:25:36PM +0800, Li Zefan wrote: >> The dst file will have the same inode flags with dst file after >> file clone, and I think it's unexpected. >>

Re: [PATCH 1/7] BTRFS: Fix lseek return value for error

2011-09-16 Thread Jeff Liu
I once posted a similar patch for this issue which can be found at: http://www.spinics.net/lists/linux-btrfs/msg12169.html with an additional improvement if the offset is larger or equal to the file size, return -ENXIO in directly: if (offset >= inode->i_size) { mutex_unlo

Re: [PATCH 1/7] BTRFS: Fix lseek return value for error

2011-09-18 Thread Jeff Liu
Hi Andreas and Andi, Thanks for your comments. On 09/18/2011 09:46 AM, Andi Kleen wrote: >>> with an additional improvement if the offset is larger or equal to the >>> file size, return -ENXIO in directly: >>> >>>if (offset >= inode->i_size) { >>>mutex_unl

Re: [PATCH 1/7] BTRFS: Fix lseek return value for error

2011-09-18 Thread Jeff liu
在 2011-9-18,下午4:42, Marco Stornelli 写道: > Il 18/09/2011 09:29, Jeff Liu ha scritto: >> Hi Andreas and Andi, >> >> Thanks for your comments. >> >> On 09/18/2011 09:46 AM, Andi Kleen wrote: >> >>>>> with an additional improvement if the of

Re: Test Trim

2011-10-11 Thread Jeff Liu
Hi Leonidas, On 10/11/2011 03:35 PM, Leonidas Spyropoulos wrote: > Hello list, > > Is there a small script to test if TRIM is working on my system? Zefan has replied a similar question at below link, hope it could be useful to you. http://permalink.gmane.org/gmane.comp.file-systems.btrfs/13018

<    1   2