Re: BTRFS: error (device dm-2) in btrfs_run_delayed_refs:2960: errno=-17 Object already exists (since 3.4 / 2012)

2017-09-09 Thread Josef Bacik
Ok mount -o clear_cache, umount and run fsck again just to make sure. Then if it comes out clean mount with ref_verify again and wait for it to blow up again. Thanks, Josef Sent from my iPhone > On Sep 9, 2017, at 10:37 PM, Marc MERLIN wrote: > >> On Sat, Sep 09, 2017 at

Re: BTRFS: error (device dm-2) in btrfs_run_delayed_refs:2960: errno=-17 Object already exists (since 3.4 / 2012)

2017-09-09 Thread Marc MERLIN
On Sat, Sep 09, 2017 at 10:56:14PM +, Josef Bacik wrote: > Well that's odd, a block allocated on disk is in the free space cache. Can I > see the full output of the fsck? I want to make sure it's actually getting > to the part where it checks the free space cache. If it does then I'll

Re: Regarding handling of file renames in Btrfs

2017-09-09 Thread Duncan
Rohan Kadekodi posted on Sat, 09 Sep 2017 18:50:09 -0500 as excerpted: > Hello, > > I was trying to understand how file renames are handled in Btrfs. I read > the code documentation, but had a problem understanding a few things. > > During a file rename, btrfs_commit_transaction() is called

Regarding handling of file renames in Btrfs

2017-09-09 Thread Rohan Kadekodi
Hello, I was trying to understand how file renames are handled in Btrfs. I read the code documentation, but had a problem understanding a few things. During a file rename, btrfs_commit_transaction() is called which is because Btrfs has to commit the whole FS before storing the information

Re: BTRFS: error (device dm-2) in btrfs_run_delayed_refs:2960: errno=-17 Object already exists (since 3.4 / 2012)

2017-09-09 Thread Josef Bacik
Well that's odd, a block allocated on disk is in the free space cache. Can I see the full output of the fsck? I want to make sure it's actually getting to the part where it checks the free space cache. If it does then I'll have to think of how to catch this kind of bug, because you've got a

Re: netapp-alike snapshots?

2017-09-09 Thread Ulli Horlacher
On Sat 2017-09-09 (22:43), Andrei Borzenkov wrote: > > Your tool does not create .snapshot subdirectories in EVERY directory like > > Neither does NetApp. Those "directories" are magic handles that do not > really exist. I know. But symbolic links are the next close thing (I am not a kernel

Re: netapp-alike snapshots?

2017-09-09 Thread Andrei Borzenkov
09.09.2017 16:44, Ulli Horlacher пишет: > > Your tool does not create .snapshot subdirectories in EVERY directory like Neither does NetApp. Those "directories" are magic handles that do not really exist. > Netapp does. > Example: > > framstag@fex:~: cd ~/Mail/.snapshot/ >

Re: BTRFS: error (device dm-2) in btrfs_run_delayed_refs:2960: errno=-17 Object already exists (since 3.4 / 2012)

2017-09-09 Thread Marc MERLIN
On Tue, Sep 05, 2017 at 06:19:25PM +, Josef Bacik wrote: > Alright I just reworked the build tree ref stuff and tested it to make sure > it wasn’t going to give false positives again. Apparently I had only ever > used this with very basic existing fs’es and nothing super complicated, so it

Re: btrfs check --repair now runs in minutes instead of hours? aborting

2017-09-09 Thread Marc MERLIN
So, should I assume that btrfs progs git has some issue since there is no plausible way that a check --repair should be faster than a regular check? Thanks, Marc On Tue, Sep 05, 2017 at 07:45:25AM -0700, Marc MERLIN wrote: > On Tue, Sep 05, 2017 at 04:05:04PM +0800, Qu Wenruo wrote: > > >

[PATCH] btrfs: Clean up dead code in root-tree

2017-09-09 Thread Christos Gkekas
The value of variable 'can_recover' is never used after being set, thus it should be removed. Signed-off-by: Christos Gkekas --- fs/btrfs/root-tree.c | 4 1 file changed, 4 deletions(-) diff --git a/fs/btrfs/root-tree.c b/fs/btrfs/root-tree.c index 95bcc3c..3338407

Re: netapp-alike snapshots?

2017-09-09 Thread Ulli Horlacher
On Sat 2017-09-09 (06:36), Marc MERLIN wrote: > > On Tue 2017-08-22 (15:22), Ulli Horlacher wrote: > > > With Netapp/waffle you have automatic hourly/daily/weekly snapshots. > > > You can find these snapshots in every local directory (readonly). > > > > I have found none, so I have implemented

Re: netapp-alike snapshots?

2017-09-09 Thread Marc MERLIN
On Sat, Sep 09, 2017 at 03:26:14PM +0200, Ulli Horlacher wrote: > On Tue 2017-08-22 (15:22), Ulli Horlacher wrote: > > With Netapp/waffle you have automatic hourly/daily/weekly snapshots. > > You can find these snapshots in every local directory (readonly). > > > I would like to have something

Re: netapp-alike snapshots?

2017-09-09 Thread Ulli Horlacher
On Tue 2017-08-22 (15:22), Ulli Horlacher wrote: > With Netapp/waffle you have automatic hourly/daily/weekly snapshots. > You can find these snapshots in every local directory (readonly). > I would like to have something similar with btrfs. > Is there (where?) such a tool? I have found none, so

Re: Please help with exact actions for raid1 hot-swap

2017-09-09 Thread Duncan
Patrik Lundquist posted on Sat, 09 Sep 2017 12:29:08 +0200 as excerpted: > On 9 September 2017 at 12:05, Marat Khalili wrote: >> Forgot to add, I've got a spare empty bay if it can be useful here. > > That makes it much easier since you don't have to mount it degraded, > with the

Re: generic name for volume and subvolume root?

2017-09-09 Thread Hans van Kranenburg
On 09/09/2017 01:06 PM, Hugo Mills wrote: > On Sat, Sep 09, 2017 at 06:58:38PM +0800, Qu Wenruo wrote: >> >> >> On 2017年09月09日 18:48, Ulli Horlacher wrote: >>> On Sat 2017-09-09 (18:40), Qu Wenruo wrote: >>> > Is there a generic name for both volume and subvolume root? Nope,

Re: generic name for volume and subvolume root?

2017-09-09 Thread Hugo Mills
On Sat, Sep 09, 2017 at 06:58:38PM +0800, Qu Wenruo wrote: > > > On 2017年09月09日 18:48, Ulli Horlacher wrote: > >On Sat 2017-09-09 (18:40), Qu Wenruo wrote: > > > >>>Is there a generic name for both volume and subvolume root? > >> > >>Nope, subvolume (including snapshot) is not distinguished by

Re: generic name for volume and subvolume root?

2017-09-09 Thread Hugo Mills
On Sat, Sep 09, 2017 at 10:35:51AM +0200, Ulli Horlacher wrote: > As I am writing some documentation abount creating snapshots: > Is there a generic name for both volume and subvolume root? > > Example: > > root@fex:~# btrfs subvol show /mnt > ERROR: not a subvolume: /mnt > > root@fex:~# btrfs

Re: generic name for volume and subvolume root?

2017-09-09 Thread Qu Wenruo
On 2017年09月09日 18:48, Ulli Horlacher wrote: On Sat 2017-09-09 (18:40), Qu Wenruo wrote: Is there a generic name for both volume and subvolume root? Nope, subvolume (including snapshot) is not distinguished by its filename/path/directory name. And you can only do snapshot on subvolume

Re: generic name for volume and subvolume root?

2017-09-09 Thread Ulli Horlacher
On Sat 2017-09-09 (18:40), Qu Wenruo wrote: > > Is there a generic name for both volume and subvolume root? > > Nope, subvolume (including snapshot) is not distinguished by its > filename/path/directory name. > > And you can only do snapshot on subvolume (snapshot is one kind of > subvolume)

Re: generic name for volume and subvolume root?

2017-09-09 Thread Qu Wenruo
On 2017年09月09日 16:35, Ulli Horlacher wrote: As I am writing some documentation abount creating snapshots: Is there a generic name for both volume and subvolume root? Example: root@fex:~# btrfs subvol show /mnt ERROR: not a subvolume: /mnt root@fex:~# btrfs subvol show /mnt/test /mnt/test is

Re: Please help with exact actions for raid1 hot-swap

2017-09-09 Thread Patrik Lundquist
On 9 September 2017 at 12:05, Marat Khalili wrote: > Forgot to add, I've got a spare empty bay if it can be useful here. That makes it much easier since you don't have to mount it degraded, with the risks involved. Add and partition the disk. # btrfs replace start /dev/sdb7

Re: Please help with exact actions for raid1 hot-swap

2017-09-09 Thread Marat Khalili
Forgot to add, I've got a spare empty bay if it can be useful here. -- With Best Regards, Marat Khalili On September 9, 2017 10:46:10 AM GMT+03:00, Marat Khalili wrote: >Dear list, > >I'm going to replace one hard drive (partition actually) of a btrfs >raid1. Can you please spell

Re: Please help with exact actions for raid1 hot-swap

2017-09-09 Thread Patrik Lundquist
On 9 September 2017 at 09:46, Marat Khalili wrote: > > Dear list, > > I'm going to replace one hard drive (partition actually) of a btrfs raid1. > Can you please spell exactly what I need to do in order to get my filesystem > working as RAID1 again after replacement, exactly as it

generic name for volume and subvolume root?

2017-09-09 Thread Ulli Horlacher
As I am writing some documentation abount creating snapshots: Is there a generic name for both volume and subvolume root? Example: root@fex:~# btrfs subvol show /mnt ERROR: not a subvolume: /mnt root@fex:~# btrfs subvol show /mnt/test /mnt/test is toplevel subvolume root@fex:~# btrfs subvol

Please help with exact actions for raid1 hot-swap

2017-09-09 Thread Marat Khalili
Dear list, I'm going to replace one hard drive (partition actually) of a btrfs raid1. Can you please spell exactly what I need to do in order to get my filesystem working as RAID1 again after replacement, exactly as it was before? I saw some bad examples of drive replacement in this list so I

PATCH - btrfs-progs-4.13: cmds-inspect-tree-stats.h: No such file or directory

2017-09-09 Thread Uli Heller
From edc11bf1463e41f5c503655f67c3036bd952eb72 Mon Sep 17 00:00:00 2001 From: Uli Heller Date: Sat, 9 Sep 2017 08:02:51 +0200 Subject: [PATCH] Removed missing header file, fixes compilation error ---  btrfs-calc-size.c | 1 -  1 file changed, 1 deletion(-) diff