kernel BUG

2010-12-23 Thread Dipl.-Ing. Michael Niederle
Hi! I got a kernel BUG at fs/btrfs/disk-io.c:2311 when testing the 2.6.37-rc5 kernel today. The system crashed while doing really nothing for a few minutes. Greetings, Michael -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.k

Re: mount snapshot by object-id

2010-12-09 Thread Dipl.-Ing. Michael Niederle
Hi, Calvin! Thanks a lot for this information and for updating the wiki! The option works - on healthy disks ... I will continue writing my rescue-tool. I also wrote a btrfs_subvolumes command that displays all subvolumes of an unmounted filesystem. This helps a lot if mounting the filesystem le

Re: Missing entry for updated directory

2010-03-27 Thread Dipl.-Ing. Michael Niederle
Hi, Goffredo! I checked all btrfs-item types (changed sk->max_type to 255 and removed the filtering) connected with the updated directory's inode. But none of them had got a new generation number. I found the missing directory only using a more conventional tool that checked all files and direct

Missing entry for updated directory

2010-03-27 Thread Dipl.-Ing. Michael Niederle
I'm using BTRFS_DIR_INDEX_KEY as suggested by Chris to find all updated directories. But I'm missing one: The directory has 3 entries deleted and stat shows different mtimes and ctimes for the directory in the two snapshots. The highest generation number in the older snapshot is 82623. But the

directory order in btrfs

2010-03-27 Thread Dipl.-Ing. Michael Niederle
Hi, Chris! I'm writing the btrfs snapshot diff tool and I would like to know, whether the entries in a btrfs directory are ordered in some way. I want to find missing entries in a new snapshot's directory. Can I do a "linear compare" of the old and new directories or do I have to sort the entries

btrfs subvol diff

2010-03-26 Thread Dipl.-Ing. Michael Niederle
> It is possible to combine the commands max-gen and find-new ? Something like: > > $ btrfs subvol find-new subvol1 snap1 I had very similar thoughts myself. If we compare two snapshots (of the same subvolume) we wouldn't need timestamps either, e.g.: btrfs subvol diff The output could

Re: btrfs subvol find-modified

2010-03-26 Thread Dipl.-Ing. Michael Niederle
Hi, Chris! > Add an optional timestamp field to filter > files that have changed since a given timestamp. Is there a possibility to derive the timestamp directly from the generation number? If we have a "-e"-switch for printing extent-information we could also have another switch to decide wheth

btrfs subvol find-modified

2010-03-26 Thread Dipl.-Ing. Michael Niederle
I have added a command btrfs subvolume find-modified List the recently modified files and directories in a filesystem. It's similar to find-new with the following differences: * in addition to modified files it will also display modified directories * it lists only the paths of the mo

Re: [PATCH 0/2] btrfs: a new tool to manage a btrfs filesystem

2010-02-14 Thread Dipl.-Ing. Michael Niederle
When creating new commands I always prefer increased readability and meaningfull names for subcommands and options. If one often enters commands directly at the command prompt one could use shell-aliases, if written in scripts long names make the scripts much easier to understand. It's great that

Re: What's the benefit of COW without checksum?

2010-01-26 Thread Dipl.-Ing. Michael Niederle
I'm using btrfs for a distribution specialized to be used with USB pen drives. btrfs ist the first file system (besides nilfs) that is fast enough to be used with media (flash memory) that has a severe restriction on the number of writes per second (to be more precise: the number of page deletes p

Re: severe hardlink bug

2010-01-24 Thread Dipl.-Ing. Michael Niederle
Hi, Goffredo! I understood that a disk layout change will be necessary to accomodate for a bigger total filename-space per file. So it is best done at once when more issues arise that will need layout changes. To recreate the error situation you need a Gentoo Linux with a btrfs root file system a

Re: severe hardlink bug

2010-01-24 Thread Dipl.-Ing. Michael Niederle
Hi, Goffredo! > See this thread: > Mass-Hardlinking Oops - http://thread.gmane.org/gmane.comp.file- > systems.btrfs/3427 Sorry, I didn't find the thread myself - despite of massive googeling. :-( The gentoo scenario however is a real world application - no artificial situation, so it would be r

Re: Free space left

2010-01-16 Thread Dipl.-Ing. Michael Niederle
Hi, Goffredo! > Try btrfs-show Thanks for your advice! btrfs-show works but it displays a lot of error message for non-btrfs devices: > btrfs-show failed to read /dev/sdg failed to read /dev/sdg1 failed to read /dev/sdg2 failed to read /dev/sdg3 failed to read /dev/sdg4 failed to read /dev/md1

btrfsctl -s returns 1

2010-01-12 Thread Dipl.-Ing. Michael Niederle
I wrote a script generating snapshots of several subvolumes. But the script failed after taking the first snapshot. I then did it by hand: > btrfsctl -s /.backups/2010-01-12.1/home /home operation complete Btrfs v0.19-4-gab8fb4c > echo $? 1 Usually commands return 0 if everything went ok (and it

Re: How to mount a subvolume?

2010-01-09 Thread Dipl.-Ing. Michael Niederle
Hi, Dirk! > Does /dev/sda3 actually exist? /dev/sda3 does exist; it is an btrfs formatted partition containing my root file system: > mount ... /dev/sda3 on / type btrfs (rw,relatime,noacl) ... Greetings, Michael @Johannes: I will recreate the /dev/brtfs-control device node in the startup scri

How to mount a subvolume?

2010-01-09 Thread Dipl.-Ing. Michael Niederle
First thanks alot to Kay and Goffredo! But I have another question. I read that the current tools cannot display subvolumes, but one should still be able to mount them. If I try I get an error message: > mount -t btrfs -o subvol=root.2010-01-07 /dev/sda3 /save mount: /dev/sda3 is not a valid blo

Still Problems with /dev/btrfs-control

2010-01-09 Thread Dipl.-Ing. Michael Niederle
Thanks for the quick reply! But I still have problems with btrfsctl: > stat /dev/btrfs-control File: `/dev/btrfs-control' Size: 0 Blocks: 0 IO Block: 4096 block special file Device: ch/12d Inode: 659848 Links: 1 Device type: a,3e Access: (0644/brw-r--r--)