Displaying 20 results from an estimated 35 matches for "root_id".
2007 Apr 18
1
[Bridge] STP Explanation (2)
...du_body.flags.port_role[0];
buf[7] = bpdu->bpdu_body.flags.port_role[1];
buf[8] = bpdu->bpdu_body.flags.learning;
buf[9] = bpdu->bpdu_body.flags.forwarding;
buf[10] = bpdu->bpdu_body.flags.agreement;
buf[11] = bpdu->bpdu_body.flags.topo_change_ack;
buf[12] = bpdu->bpdu_body.root_id.prio[0];
buf[13] = bpdu->bpdu_body.root_id.prio[1];
buf[14] = bpdu->bpdu_body.root_id.addr[0];
buf[15] = bpdu->bpdu_body.root_id.addr[1];
buf[16] = bpdu->bpdu_body.root_id.addr[2];
buf[17] = bpdu->bpdu_body.root_id.addr[3];
buf[18] = bpdu->bpdu_body.root_id.addr[4];
buf[19]...
2006 Mar 15
5
acts_as_threaded - help ???
...to where we''re ready to create our first post, having made the
changes to controllers/posts_controller.rb, views/posts/_form.rhtml,
views/posts/show.rhtml, and models/post.rb as shown in the screencast.
When I submit the post I get an SQL error:
PGError: ERROR: null value in column "root_id" violates not-null constraint:
INSERT INTO posts ("name", "updated_at", "body", "depth", "lft",
"subject", "root_id", "parent_id", "rgt", "created_at")
VALUES(''Richard Nixon'',...
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)
2013 Apr 11
0
[PATCH] Btrfs-progs: enhance 'btrfs subvolume list'
...+
struct btrfs_list_comparer_set *btrfs_list_alloc_comparer_set(void)
{
struct btrfs_list_comparer_set *set;
@@ -391,52 +490,70 @@ static struct root_info *root_tree_search(struct root_lookup *root_tree,
return NULL;
}
-static int update_root(struct root_lookup *root_lookup,
- u64 root_id, u64 ref_tree, u64 root_offset, u64 flags,
- u64 dir_id, char *name, int name_len, u64 ogen, u64 gen,
- time_t ot, void *uuid, void *puuid)
+static int set_root_info(struct root_info *rinfo, u64 ref_tree, u64 root_offset,
+ u64 dir_id, char *name, int name_len,
+ struct btrfs_...
2012 Jun 29
12
[PATCH 1/3] Btrfs-progs: add support to set subvolume/snapshot readonly
Setting subvolume/snapshot readonly has been missing for a long time.
With this patch, we can set a subvolume/snapshot readonly via:
o btrfs subvolume set-ro <path>
Signed-off-by: Liu Bo <liubo2009@cn.fujitsu.com>
---
cmds-subvolume.c | 40 ++++++++++++++++++++++++++++++++++++++++
ioctl.h | 7 +++++++
2 files changed, 47 insertions(+), 0 deletions(-)
diff --git
2011 Jul 07
5
[PATCH v1 0/2] Btrfs-progs: commands "resolve inode" and "resolve logical"
The kernel patch series just sent (Subject: "Btrfs: scrub: print path to
corrupted files and trigger nodatasum fixup") introduces two new ioctls to
do in-kernel filesystem path construction. This series provides the
corresponding userspace changes, adding two new commands to the btrfs utility:
--
btrfs resolve inode [-v] <inode> <path>
resolves an <inode> to all
2006 Jun 20
2
Converting from acts_as_tree to acts_as_nested_set
...t can process a rails tree
into a nested set by determining the values for left/right and filling
them in?
I''ve seen a SQL method to accomplish this conversion, but it will not
run on MySQL. I think I may be forced to do the conversion using Ruby.
As a side note: My comments DO have a root_id available, so it is
actually possible for me to select all Comments for a topic in a single
select. It may be possible to then work out the tree model in memory
based on the parent_id values. Would you recommend trying to work this
into an enhanced acts_as_tree plugin, or just would it just be...
2012 Sep 17
13
[PATCH 1/2 v3] Btrfs: use flag EXTENT_DEFRAG for snapshot-aware defrag
We''re going to use this flag EXTENT_DEFRAG to indicate which range
belongs to defragment so that we can implement snapshow-aware defrag:
We set the EXTENT_DEFRAG flag when dirtying the extents that need
defragmented, so later on writeback thread can differentiate between
normal writeback and writeback started by defragmentation.
This patch is used for the latter one.
Originally patch
2013 Apr 10
0
[PATCH] Btrfs-progs: add send option for using new end-cmd semantic
...++----
ioctl.h | 15 ++++++++++++++-
2 files changed, 45 insertions(+), 5 deletions(-)
diff --git a/cmds-send.c b/cmds-send.c
index 9bb4206..adfb67d 100644
--- a/cmds-send.c
+++ b/cmds-send.c
@@ -244,7 +244,8 @@ out:
return ERR_PTR(ret);
}
-static int do_send(struct btrfs_send *send, u64 root_id, u64 parent_root_id)
+static int do_send(struct btrfs_send *send, u64 root_id, u64 parent_root_id,
+ int is_first_subvol, int is_last_subvol)
{
int ret;
pthread_t t_read;
@@ -298,11 +299,18 @@ static int do_send(struct btrfs_send *send, u64 root_id, u64 parent_root_id)
io_send.clone_sour...
2006 Jun 17
2
URL based on acts_as_tree using routes
...; code, this would be nice:
map.connect '':acts_as_tree'', :controller => ''pages'', :action => ''view'',
:acts_as_tree => { :model => Page,
:write_url_for => Page.name,
:root_id => 0,
:default_url => Page.find_by_id(:first) }
OR, with a URL prefix such as "pages":
map.connect ''pages/:acts_as_tree'', :controller => ''pages'', :action => ''view'',
:acts_as_tree => {...
2013 Apr 09
19
[PATCH 00/17] Btrfs-progs: some receive related patches
Most fixes are trivial.
The one from Alex is fixing a real bug that several users have reported.
Alex sent the patch half a year ago and it was not yet integrated.
The patch "Use /proc/mounts instead of /etc/mtab" is a repost.
The patch "btrfs-receive optionally honors the end-cmd" is a preparation
step to allow backup tools to multiplex a single communication stream
(e.g. a
2010 Dec 11
1
[RFC] Improve btrfs subvolume find-new command
...,
(unsigned long long)disk_start,
@@ -732,29 +747,151 @@ static int print_one_extent(int fd, struct
btrfs_ioctl_search_header *sh,
if (!flags)
printf("NONE");
- printf(" %s\n", name);
+ printf("\n");
return 0;
}
-int find_updated_files(int fd, u64 root_id, u64 oldest_gen)
+BTRFS_SETGET_STACK_FUNCS(stack_inode_nbyte,
+ struct btrfs_inode_item, nbytes, 32);
+int print_one_inode(struct btrfs_inode_item *item,
+ u64 found_gen)
{
- int ret;
- struct btrfs_ioctl_search_args args;
- struct btrfs_ioctl_search_key *sk = &ar...
2007 Jul 18
10
Rails - Mock going out of scope?
...ope on the recursive call to
parent. The direct spec to the parent to get language name works
fine.
Any ideas? (the code below is slimmed down to the code needed to run the spec.
Regards
Mikel
CODE::
class Node < ActiveRecord::Base
belongs_to :language
acts_as_nested_set :scope => :root_id
def language_name
self.root? ? language.name : parent.language_name
end
end
describe Node, "instance" do
fixtures :nodes
before(:each) do
@language = mock_model(Language, :name => "Japanese")
@node = Node.create!(:language => @language)
@section...
2007 May 14
3
How to make a Tag cloud with Ferret ?
Hello,
I want to make a TAG CLOUD using ferret.
How can i do so ?
I would need to know the amount of keyword for every each words in the
index.
Thank you
--
Posted via http://www.ruby-forum.com/.
2007 Jul 18
16
Edge Rails namespaced routing
.../products/notes_controller.rb
with routes like:
map.namespace(:customers) do |customers|
customers.resources :root, :has_many => [:tags, :notes]
end
map.namespace(:products) do |products|
products.resources :root, :has_many => [:tags, :notes]
end
creating routes like:
/customers/root/#{root_id}
/customers/root/#{root_id}/tags/#{id}
/customers/root/#{root_id}/notes/#{id
/products/root/#{root_id}
/products/root/#{root_id}/tags/#{id}
/products/root/#{root_id}/notes/#{id
This will work. But we have an unnecessary /root/ in the route. I
suppose the solution would be adding a flag to the nam...
2006 Dec 26
0
[806] trunk/wxruby2/samples/treectrl: Restored demonstration of use of icons and fonts within TreeCtrl
...lass="cx"> def add_test_items_to_tree(num_children,depth)
</span><del>- image = Wx::get_app.show_images() ? TreeCtrlIcon_Folder : -1
</del><ins>+ image = Wx::get_app.show_images ? TreeCtrlIcon_Folder : -1
</ins><span class="cx"> root_id = add_root("Root",image, image)
</span><span class="cx"> if image != -1
</span><span class="cx"> set_item_image(root_id, TreeCtrlIcon_FolderOpened,
</span><del>- Wx::TREE_ITEM_ICON_EXPANDED)
</del>...
2006 Dec 05
0
[779] trunk/wxruby2: Added TreeCtrl#traverse method and documentation
...s="cx"> multiselection controls only.
</span><span class="cx">
</span><ins>+h3(#TreeCtrl_traverse). TreeCtrl#traverse
</ins><span class="cx">
</span><ins>+ *toggle_item_selection*(%(arg-type)TreeItemId% start_item = root_id) { | item_id | ... }
+
+Recurses over the treectrl''s items, passing each TreeItemId successively
+into the passed block. This TreeItemId can be used as an argument to
+many other methods in this class.
+
+The @start_item@ argument will be the first item_id passed into the...
2006 Apr 29
2
counter_caching clobbered when preloading association ?
...he file_count following
the parent_id through all the folders until I reach root. (Looking into
the db I see the correct values so this seems to work).
But I hit a problem when trying to read the file_count value from the
database:
the code:
@folders = Folder.find(:all, :order => ''root_id desc, lft'')
will return the file_count value as set in the database
the code:
@folders = Folder.find(:all, :include => :files, :order => ''root_id
desc, lft'')
will return a file_count value of zero for all parents
So it seems that when I include the association t...
2009 Feb 17
8
Converting Acts_As_Tree to Acts_As_Nested_Set
Hello,
I have a tree structure that needs to be converted into a nested set.
A great deal of work has already been done on the tree items, so
maintaining the integrity of the id''s is mandatory. However I need
the ability to access entire branches of the tree, which is what
Nested set does. Does anyone have any suggestions on how to
efficiently transfer the tree to the nested set and
2011 Apr 07
0
[PATCH] btrfs-progs: cast u64 to long long to avoid printf warnings
...samba.org>
---
diff --git a/btrfs-list.c b/btrfs-list.c
index 93766a8..c602b87 100644
--- a/btrfs-list.c
+++ b/btrfs-list.c
@@ -249,7 +249,8 @@ static int resolve_root(struct root_lookup *rl, struct root_info *ri)
break;
}
}
- printf("ID %llu top level %llu path %s\n", ri->root_id, top_id,
+ printf("ID %llu top level %llu path %s\n",
+ (unsigned long long)ri->root_id, (unsigned long long)top_id,
full_path);
free(full_path);
return 0;
diff --git a/btrfs-map-logical.c b/btrfs-map-logical.c
index a109c6a..9e9806d 100644
--- a/btrfs-map-logical.c...