[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 c...@laptop.org --- fs/btrfs/inode.c |9 - 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/fs/btrfs

[review] Btrfs: Allow shrinking close to used space

2009-02-25 Thread Chris Ball
); + unlock_chunks(root); + btrfs_end_transaction(trans, root); + done: btrfs_free_path(path); return ret; -- Chris Ball c...@laptop.org -- To unsubscribe from this list: send the line unsubscribe linux-btrfs in the body of a message to majord...@vger.kernel.org More majordomo

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

2009-03-01 Thread Chris Ball
and Josef, for the patient explanations.) == From: Chris Ball c...@laptop.org 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 completes

[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 c...@laptop.org --- fs/btrfs/transaction.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/fs/btrfs/transaction.c b/fs/btrfs/transaction.c

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

2009-08-17 Thread Chris Ball
. -- Chris Ball c...@laptop.org 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 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 c...@laptop.org --- fs/btrfs

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 c...@laptop.org 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

RFC: Btrfs snapshots feature proposal for Fedora 13

2009-11-17 Thread Chris Ball
/users/palimpsest/stable/intro.html.en -- Chris Ball c...@laptop.org 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
running btrfsctl -a in an initrd? It's necessary to do that before the mount call on a multi-disk volume. - Chris. -- Chris Ball c...@laptop.org 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

Re: kernel BUG

2010-12-23 Thread Chris Ball
errors while writing supers\n, total_errors); BUG(); } in write_all_supers(). Does dmesg say anything about the nature of the errors above the BUG() line? - Chris. -- Chris Ball

Re: kernel BUG

2010-12-23 Thread Chris Ball
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 c...@laptop.org One Laptop Per Child -- To unsubscribe from this list: send the line

Re: kernel BUG

2010-12-23 Thread Chris Ball
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 c...@laptop.org One Laptop Per Child -- To unsubscribe from this list: send the line unsubscribe linux-btrfs in the body

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

2011-03-07 Thread Chris Ball
- ce-start; if (map-type (BTRFS_BLOCK_GROUP_DUP | BTRFS_BLOCK_GROUP_RAID1)) ret = map-num_stripes; else if (map-type BTRFS_BLOCK_GROUP_RAID10) -- Chris Ball c...@laptop.org http://printf.net/ One Laptop Per Child -- To unsubscribe from this list: send the line

Re: [bug] Reclaim space.

2010-02-09 Thread Chris Ball
; +} + int btrfs_make_block_group(struct btrfs_trans_handle *trans, struct btrfs_root *root, u64 bytes_used, u64 type, u64 chunk_objectid, u64 chunk_offset, -- 1.5.4.3 -- Chris Ball c...@laptop.org One Laptop Per Child -- To unsubscribe from

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 c...@laptop.org 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
a read-only -pristine version of that snapshot and have tools that base your read-write snapshots on that. I don't think it would be possible for any filesystem to handle changing snapshot on a mounted filesystem with files open, so it makes sense that it's a remount operation. - Chris. -- Chris

Re: zero-length files in snapshots

2010-02-11 Thread Chris Ball
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 c...@laptop.org One Laptop Per Child -- To unsubscribe

Re: zero-length files in snapshots

2010-02-12 Thread Chris Ball
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 c...@laptop.org One Laptop Per Child -- To unsubscribe from this list: send the line

Re: Raid1 with 3 drives

2010-03-05 Thread Chris Ball
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 c...@laptop.org One Laptop Per Child

Re: Cross-subvolume link causes kernel BUG

2010-03-08 Thread Chris Ball
; + /* do not allow sys_link'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 c...@laptop.org One Laptop Per Child

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 id path does what you need. - Chris. -- Chris Ball c...@laptop.org One Laptop Per Child -- To unsubscribe from this list

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 c...@laptop.org

Re: can subvolumes be specified as compressed?

2010-07-29 Thread Chris Ball
the deadlock there? - Chris. -- Chris Ball c...@laptop.org 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: 2.6.36-rc1 btrfs still unstable

2010-08-16 Thread Chris Ball
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 c...@laptop.org One Laptop Per Child -- To unsubscribe from this list: send the line unsubscribe linux-btrfs in the body of a message

Re: 2.6.36-rc1 btrfs still unstable

2010-08-16 Thread Chris Ball
() on verify_parent_transid() failure sound plausible. - Chris. -- Chris Ball c...@laptop.org 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 c...@laptop.org http://printf.net/ One

Re: Updating the wiki pages adding btrfs command

2010-09-15 Thread Chris Ball
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 c...@laptop.org http://printf.net/ One Laptop Per Child

Re: Updating the wiki pages adding btrfs command

2010-09-15 Thread Chris Ball
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 c...@laptop.org http://printf.net/ One Laptop Per Child

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 c...@laptop.org http://printf.net/ One Laptop Per Child -- To unsubscribe from this list: send the line unsubscribe linux-btrfs

Re: btrfs user survey?

2010-09-27 Thread Chris Ball
-- we shouldn't bother this list with any results other than the final summary. - Chris. -- Chris Ball c...@laptop.org 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

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

2010-10-07 Thread Chris Ball
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 c...@laptop.org One Laptop Per Child -- To unsubscribe from this list: send the line unsubscribe

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 c...@laptop.org One Laptop Per Child -- To unsubscribe from this list: send the line unsubscribe linux-btrfs in the body of a message

Re: Blog: BTRFS is effectively stable

2010-10-29 Thread Chris Ball
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 c...@laptop.org One Laptop Per Child -- To unsubscribe from this list: send the line unsubscribe linux-btrfs

Update to Project_ideas wiki page

2010-11-16 Thread Chris Ball
, then discard the rest. -- Chris Ball c...@laptop.org 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 c...@laptop.org 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 c...@laptop.org One Laptop Per Child