search for: btrfs_root_subvol_rdonly

Displaying 6 results from an estimated 6 matches for "btrfs_root_subvol_rdonly".

2014 Apr 23
0
[PATCH 001/001] btrfs: Mechanism to modify the permission of a subvolume
...ode_owner_or_capable(inode)) { + ret = -EACCES; + goto out_drop_write; + } + + down_write(&root->fs_info->subvol_sem); + root_flags = btrfs_root_flags(&root->root_item); + + if (flags & BTRFS_SUBVOL_RDONLY) { + btrfs_set_root_flags(&root->root_item, + root_flags | BTRFS_ROOT_SUBVOL_RDONLY); + printk(KERN_INFO "Setting %s to ro\n", vol_args->name); + } else { + btrfs_set_root_flags(&root->root_item, + root_flags & ~BTRFS_ROOT_SUBVOL_RDONLY); + printk(KERN_INFO "Setting %s to rw\n", vol_args->name); + } + + trans = btrfs_start_transaction(ro...
2013 Dec 16
6
[PATCH 0/3] Send: minor cleanups, add RO checks
First two patches are trivial cleanups that I''ve spotted while reading send.c, can be applied independently. The third patch contains the important bits, safety checks that the subvolumes involved in send do not accidentally lose the RO status. I haven''t seen this documented anywhere that this is mandatory, implied from how I assume send works. Please let me know if this is
2012 Nov 01
41
[Request for review] [RFC] Add label support for snapshots and subvols
From: Anand Jain <anand.jain@oracle.com> (This patch is for the review/test not yet for the integration). Here is an implementation of the feature to add label to the subvolume and snapshots. Which would help sysadmin to better manager the subvol and snapshots. This can be done in two ways, one - using attr which is user land only changes but drawback is able to change the label
2013 Apr 11
0
[PATCH] Btrfs-progs: enhance 'btrfs subvolume list'
...); - btrfs_list_setup_print_column(BTRFS_LIST_OTIME); - break; - case ''u'': - btrfs_list_setup_print_column(BTRFS_LIST_UUID); - break; - case ''q'': - btrfs_list_setup_print_column(BTRFS_LIST_PUUID); break; case ''r'': flags |= BTRFS_ROOT_SUBVOL_RDONLY; break; case ''G'': - btrfs_list_setup_print_column(BTRFS_LIST_GENERATION); ret = btrfs_list_parse_filter_string(optarg, &filter_set, BTRFS_LIST_FILTER_GEN); @@ -384,9 +373,7 @@ static int cmd_subvol_list(int argc, char **argv) goto out; }...
2011 Aug 23
40
[PATCH 00/21] [RFC] Btrfs: restriper
Hello, This patch series adds an initial implementation of restriper (it''s a clever name for relocation framework that allows to do selective profile changing and selective balancing with some goodies like pausing/resuming and reporting progress to the user. Profile changing is global (per-FS) so far, per-subvolume profiles require some discussion and can be implemented in future.
2012 Aug 01
17
[PATCH] add crtime to the snapshot list
From: Anand <anand.jain@oracle.com> This patch adds creation-time to the snapshot list display, which would help user to better manage the snapshots when number of snapshots grow substantially. This patch is developed and on top of the send/receive btrfs and btrfs-progs repo at git://github.com/ablock84/linux-btrfs.git (send-v2) git://github.com/ablock84/btrfs-progs.git (send-v2)