Re: Slow link/Capacity changed + Kernel OOPS... possible hardware issues, ideas?

2010-10-07 Thread Chris Ball
ap on Newegg!!! Yes, the read errors are coming all the way up from the hardware; I don't think this is a btrfs problem. There's not much btrfs could do to help, except (over time) grow to handle I/O errors without BUG()ing out. -- Chris Ball One Laptop Per Child -- To unsubscribe f

Re: converting one-disk btrfs into RAID-1?

2010-10-11 Thread Chris Ball
Hi, > Is it possible to turn a 1-disk (partition) btrfs filesystem into > RAID-1? Not yet, but I'm pretty sure it's on the roadmap. - Chris. -- Chris Ball One Laptop Per Child -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the b

Re: Blog: "BTRFS is effectively stable"

2010-10-29 Thread Chris Ball
ice to see, but we should be clearer about what stability means. This was just fio testing; it doesn't say anything about resilience to crashes, power offs, or the presence of corruption. - Chris. -- Chris Ball One Laptop Per Child -- To unsubscribe from this list: send the line "uns

Update to Project_ideas wiki page

2010-11-16 Thread Chris Ball
a to the front of the drive, then discard the rest. -- Chris Ball One Laptop Per Child -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: ls & flush-btrfs-1 sit at 100% sys

2010-11-17 Thread Chris Ball
Hi, > Is doesn't return, I check top and both ls and flush-btrfs-1 are > sitting at ~50% sys usage each. Does anything new appear in dmesg when the hang happens? Can you run alt-sysrq-t (show tasks) and send us the output for the ls process? - Chris. -- Chris Ball One

Re: tiny btrfs bug.....

2010-11-18 Thread Chris Ball
Hi, > In stead, df reports the size of the partition to be about > 60GB. For each GB written to the partition, 2GB gets used. https://btrfs.wiki.kernel.org/index.php/FAQ#Why_does_df_show_incorrect_free_space_for_my_RAID_volume.3F -- Chris Ball One Laptop Per Child -- To unsub

Re: What to do about subvolumes?

2010-12-02 Thread Chris Ball
cient operation for enumerating subvolumes and snapshots, and how will that work? We're going to want tools like plymouth and grub to be able to list all snapshots without running a large scan. Thanks, - Chris. -- Chris Ball One Laptop Per Child -- To unsubscribe from this list: send t

Re: kernel BUG

2010-12-23 Thread Chris Ball
rs above the BUG() line? - Chris. -- Chris Ball One Laptop Per Child -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: kernel BUG

2010-12-23 Thread Chris Ball
;ve reverted to your older kernel because you had another -rc5 crash? If the crash happens on -rc5 but not the older kernel (what revision is the older kernel?), that's extremely interesting. Josef/Chris, any knowledge about hitting this BUG() on -rc5? - Chris. -- Chris Ball One Laptop Per

Re: kernel BUG

2010-12-23 Thread Chris Ball
UG() does suggest a hardware problem, assuming it's coded correctly. dmesg would tell us for sure, because the I/O error would be reported above the BUG() output. - Chris. -- Chris Ball One Laptop Per Child -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs&q

[PATCH -progs] Fix unused-but-set errors in gcc-4.6

2011-03-07 Thread Chris Ball
67,14 +865,12 @@ int btrfs_num_copies(struct btrfs_mapping_tree *map_tree, u64 logical, u64 len) struct cache_extent *ce; struct map_lookup *map; int ret; - u64 offset; ce = find_first_cache_extent(&map_tree->cache_tree, logical); BUG_ON

[PATCH] btrfs: Handle SGID bit when creating inodes

2009-01-31 Thread Chris Ball
Before this patch, new files/dirs would ignore the SGID bit on their parent directory and always be owned by the creating user's uid/gid. Signed-off-by: Chris Ball --- fs/btrfs/inode.c |9 - 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/fs/btrfs/inode.c b/fs/

[review] Btrfs: Allow shrinking close to used space

2009-02-25 Thread Chris Ball
later resize. Thanks! Signed-off-by: Chris Ball diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index 1316139..e2fa072 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c @@ -1815,30 +1815,8 @@ int btrfs_shrink_device(struct btrfs_device *device, u64 new_size) if

Re: [review] Btrfs: Allow shrinking close to used space

2009-03-01 Thread Chris Ball
n. (Thanks, Yan and Josef, for the patient explanations.) == From: Chris Ball Btrfs: When shrinking, only update disk size on success Previously, we updated a device's size prior to attempting a shrink operation. This patch moves the device resizing logic to only happen if the shrink comple

[PATCH] Btrfs: Add an alarm for long-running transactions.

2009-03-10 Thread Chris Ball
If we're waiting for a transaction to end, and it started more than five minutes ago, emit a warning. Signed-off-by: Chris Ball --- fs/btrfs/transaction.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/fs/btrfs/transaction.c b/fs/btrfs/transaction.c index f9

[PATCH] Add a "-v" flag for verbose scanning, and ignore floppy devices.

2009-03-29 Thread Chris Ball
). Signed-off-by: Chris Ball --- btrfs-show.c |2 +- btrfsctl.c | 11 --- utils.c | 17 +++-- utils.h |2 +- 4 files changed, 25 insertions(+), 7 deletions(-) diff --git a/btrfs-show.c b/btrfs-show.c index c49626c..91e0e43 100644 --- a/btrfs-show.c +

[REVIEW] Btrfs: Introduce ioctl for compressed size of file

2009-04-18 Thread Chris Ball
lone_range_args { #define BTRFS_IOC_SUBVOL_CREATE _IOW(BTRFS_IOCTL_MAGIC, 14, \ struct btrfs_ioctl_vol_args) +#define BTRFS_IOC_COMPR_SIZE _IO(BTRFS_IOCTL_MAGIC, 15) #endif -- Chris Ball -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH] btrfs: implement FS_IOC_GETFLAGS/SETFLAGS/GETVERSION

2009-04-23 Thread Chris Ball
a single ioctl that accepts a new set of flags? Thanks, - Chris. -- Chris Ball -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: Why does stat() return invalid st_dev field for btrfs ??

2009-08-17 Thread Chris Ball
d not be sufficient. - Chris. -- Chris Ball One Laptop Per Child -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

[PATCH 1/2] Btrfs: Use CONFIG_BTRFS_POSIX_ACL to enable ACL code

2009-09-16 Thread Chris Ball
We've already defined CONFIG_BTRFS_POSIX_ACL in Kconfig, but we're currently not using it and are testing CONFIG_FS_POSIX_ACL instead. CONFIG_FS_POSIX_ACL states "Never use this symbol for ifdefs". Signed-off-by: Chris Ball --- fs/btrfs/acl.c |6 +++--- fs/btrfs/c

[PATCH 2/2] Btrfs: Fix setting umask when POSIX ACLs are not enabled

2009-09-16 Thread Chris Ball
We currently set sb->s_flags |= MS_POSIXACL unconditionally, which is incorrect -- it tells the VFS that it shouldn't set umask because we will, yet we don't set it ourselves if we aren't using POSIX ACLs, so the umask ends up ignored. Signed-off-by: Chris Ball --- fs/btrfs/su

Re: Kernel oops with 2.6.31 in btrfs_set_acl

2009-09-18 Thread Chris Ball
that is? This should work, after gdb btrfs.ko: (gdb) list *btrfs_set_acl+0x87 - Chris. -- Chris Ball One Laptop Per Child -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://

Building a RAID post-mkfs?

2009-10-16 Thread Chris Ball
of "mkfs.btrfs -m raid0/1 -d raid0/1 /dev/sda /dev/sdb". Is it possible to create this non-destructively now? If not, should it be? What would the implementation look like? Thanks, - Chris. -- Chris Ball One Laptop Per Child -- To unsubscribe from this list: send the line "u

Re: List of devices added to a btrfs file system

2009-11-07 Thread Chris Ball
Hi Prasad, > This works really fine, but there should be a way to list the > number of device and device names added to the file system. Is > there any way to get that list? btrfs-show does this. - Chris. -- Chris Ball One Laptop Per Child -- To unsubscribe from this list:

Re: rootfs snapshots and rollback (i.e. testing updates)

2009-11-09 Thread Chris Ball
the changes that the package manager made, so it wouldn't be correct to think of this as a way to only rollback package manager transactions. - Chris. -- Chris Ball One Laptop Per Child -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the

RFC: Btrfs snapshots feature proposal for Fedora 13

2009-11-17 Thread Chris Ball
http://library.gnome.org/users/palimpsest/stable/intro.html.en -- Chris Ball One Laptop Per Child -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: Mount via /etc/fstab constant failure

2009-12-31 Thread Chris Ball
ux-2.6.32.2 and > 2.6.33-rc2. Are you running "btrfsctl -a" in an initrd? It's necessary to do that before the mount call on a multi-disk volume. - Chris. -- Chris Ball One Laptop Per Child -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs"

Re: [bug] Reclaim space.

2010-02-09 Thread Chris Ball
struct btrfs_root *root, u64 bytes_used, u64 type, u64 chunk_objectid, u64 chunk_offset, -- 1.5.4.3 -- Chris Ball One Laptop Per Child -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [bug] Reclaim space.

2010-02-09 Thread Chris Ball
break; + + cache = (struct btrfs_block_group_cache *)(unsigned long)ptr; + total += btrfs_block_group_used(&cache->item); + start = end + 1; + } + + return total; +} + int btrfs_make_block_group(struct btrfs_trans_handle *trans,

Re: [bug] Reclaim space.

2010-02-09 Thread Chris Ball
Hi, > Will this also fix the directory that i can't delete? No, I think you need "btrfsctl -D" for that. - Chris. -- Chris Ball One Laptop Per Child -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to ma

Re: [bug] Reclaim space.

2010-02-09 Thread Chris Ball
Hi, > btrfsctl -D ext2_saved/ > ioctl:: Invalid argument It's merged (during 2.6.32) -- I think you just have the wrong syntax. See http://btrfs.wiki.kernel.org/index.php/Btrfsctl. - Chris. -- Chris Ball One Laptop Per Child -- To unsubscribe from this list: send the line &

Re: Using snapshots as quick restore point

2010-02-10 Thread Chris Ball
t's a remount operation. - Chris. -- Chris Ball One Laptop Per Child -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: zero-length files in snapshots

2010-02-11 Thread Chris Ball
ult; cmason wants the no-sync version of snapshot creation to be available, but was amenable to the idea of changing the default to be sync before snapshot, since it was pointed out that no-one other than him had understood we were supposed to be running sync first. - Chris. -- Chris Ball One

Re: zero-length files in snapshots

2010-02-12 Thread Chris Ball
ically, and the concurrent writes are missed because we decided to block further writes from that process before we took the snapshot. The only real answer is to quiesce the writer process before you begin. Does that make sense? - Chris. -- Chris Ball One Laptop Per Child -- To unsubscribe from

Re: Raid1 with 3 drives

2010-03-05 Thread Chris Ball
> for RAID stuff make more sense, but for the time being just > ignore df. Added to: http://btrfs.wiki.kernel.org/index.php/FAQ#Why_does_df_show_incorrect_free_space_for_my_RAID_volume.3F since we're often seeing this question on the list and IRC. - Chris. -- Chris Ball One

Re: Cross-subvolume link causes kernel BUG

2010-03-08 Thread Chris Ball
ink's with other subvols of the same device */ + if (root->objectid != BTRFS_I(inode)->root->objectid) + return -EPERM; + /* * 1 item for inode ref * 2 items for dir items -- Chris Ball One Laptop Per Child -- To unsubscribe from this list:

Re: default subvolume abilities/restrictions

2010-05-19 Thread Chris Ball
Hi, > moving along to a question... can the default subvolume be > swapped/removed/renamed/popped/shifted? I think "btrfs subvolume list; btrfs subvolume set-default " does what you need. - Chris. -- Chris Ball One Laptop Per Child -- To unsubscribe from this lis

Re: raid1 not reporting the right size

2010-05-27 Thread Chris Ball
Hi, > I'm trying to create a raid1 (mirrored) raid using two 1 Tb > disks. The result is something twice as large as it should be > fore mirrored raid. https://btrfs.wiki.kernel.org/index.php/FAQ#Why_does_df_show_incorrect_free_space_for_my_RAID_volume.3F -- Chris Ball

Re: can subvolumes be specified as compressed?

2010-07-29 Thread Chris Ball
n't notice). Does anyone have suggestions on how to break the deadlock there? - Chris. -- Chris Ball One Laptop Per Child -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: can subvolumes be specified as compressed?

2010-07-29 Thread Chris Ball
cause we can just do a good job all the time only works if it's actually true that we can do a good job all the time, and I don't think that's true here. So, I still support user control of the per-inode flag. (I agree about the subvol flags; I think being able to set quotas and compres

Re: 2.6.36-rc1 btrfs still unstable

2010-08-16 Thread Chris Ball
stable machine, it is currently possible to corrupt a filesystem irrecoverably if your machine crashes or loses power. This will be fixed when the fsck tool is ready. - Chris. -- Chris Ball One Laptop Per Child -- To unsubscribe from this list: send the line "unsubscribe linux-btrf

Re: 2.6.36-rc1 btrfs still unstable

2010-08-16 Thread Chris Ball
ver happened and sync the transids", or "do something other than BUG() on verify_parent_transid() failure" sound plausible. - Chris. -- Chris Ball One Laptop Per Child -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: Updating the wiki pages adding btrfs command

2010-09-15 Thread Chris Ball
Hi, > adding a --wait or --sync switch to the delete command is > certainly possible, you'd want to add it to the last in a series > of deletes. I think this (--sync) is a much better idea than the alternatives so far. Thanks, -- Chris Ball <http://printf.net

Re: Updating the wiki pages adding btrfs command

2010-09-15 Thread Chris Ball
f the > tree. Yeah. We've also talked about making snapshot _creation_ perform an FS sync first by default, since otherwise you get a snapshot with stale files, or without files that existed (not yet on disk) at creation-time. - Chris. -- Chris Ball <http://printf.net/> On

Re: Updating the wiki pages adding btrfs command

2010-09-15 Thread Chris Ball
vol delete has happened, but is unwilling to wait until all other writes to the FS have finished, and is even more unwilling to wait for all writes on the rest of the system to finish. I don't know whether that's actually a reasonable/plausible use case, though. - Chris. -- Chris Ball

Re: [PATCH] Add the "btrfs filesystem label" command

2010-09-15 Thread Chris Ball
Hi, > How can one char equal two chars? > > input[i] == '\\' If the first char is the C escape sequence for string literals. :) - Chris. -- Chris Ball <http://printf.net/> One Laptop Per Child -- To unsubscribe from this list: send the line "unsubs

Re: btrfs user survey?

2010-09-27 Thread Chris Ball
g everyone reply on-list -- we shouldn't bother this list with any results other than the final summary. - Chris. -- Chris Ball One Laptop Per Child -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kerne