search for: lookup_one_len

Displaying 5 results from an estimated 5 matches for "lookup_one_len".

2008 Aug 19
0
[PATCH] Reinstate '-osubvol=.' option to mount entire tree
...15 deletions(-) diff --git a/super.c b/super.c index 55f4d00..f7b3eac 100644 --- a/super.c +++ b/super.c @@ -451,21 +451,25 @@ static int btrfs_get_sb(struct file_system_type *fs_type, int flags, s->s_flags |= MS_ACTIVE; } - mutex_lock(&s->s_root->d_inode->i_mutex); - root = lookup_one_len(subvol_name, s->s_root, strlen(subvol_name)); - mutex_unlock(&s->s_root->d_inode->i_mutex); - if (IS_ERR(root)) { - up_write(&s->s_umount); - deactivate_super(s); - error = PTR_ERR(root); - goto error; - } - if (!root->d_inode) { - dput(root); - up_write(&s->s...
2003 Sep 24
1
FS-corruption on ext3 with HTrees
...is specific to ext3. This works fine on ext3 and ext2 without HTrees, but this behavior occurs on ext3 with Htrees. Here's a high level description of what I'm doing in versionfs_unlink: * down the isem of parent directory * compute the name of the version file * lookup the name using lookup_one_len * create the version'ed file using vfs_create * open the original file using dentry_open * copy the data from the original file to the version file * close the original file and version file * upping the isem of the parent directory * call vfs_unlink as it would have been called normally...
2011 Apr 06
3
[PATCH V2] Btrfs: fix subvolume mount by name problem when default mount subvolume is set
...rcmp(subvol_name, ".")) { struct dentry *new_root; + + root = get_default_root(s, subvol_rootid); + if (IS_ERR(root)) { + error = PTR_ERR(root); + deactivate_locked_super(s); + goto error_free_subvol_name; + } + mutex_lock(&root->d_inode->i_mutex); new_root = lookup_one_len(subvol_name, root, strlen(subvol_name)); @@ -816,6 +833,14 @@ static int btrfs_get_sb(struct file_system_type *fs_type, int flags, dput(root); root = new_root; } + else { + root = get_default_root(s, subvol_objectid); + if (IS_ERR(root)) { + error = PTR_ERR(root); + deactiv...
2007 Aug 23
2
give me some works
hello, Chris In the next several months, I will have a lot of spare time. I will be happy if you assign some work to me. I have learn linux kernel for years but only fix a few small bugs in IP stack. In the past few months, I read some EXT4/VFS codes. I began reading source of btrfs ten days ago and have read it twice now. Regards YZ
2006 Feb 13
2
Help with disk server stability issues
...df3 Feb 12 05:52:03 tier2-home kernel: c3e300b0 c31d6a00 f7dc1700 c31d6a00 f89902e7 f4ab6000 f4ac6800 f4ac69d4 Feb 12 05:52:03 tier2-home kernel: Call Trace: Feb 12 05:52:03 tier2-home kernel: [<c01649d7>] __lookup_hash+0x70/0x89 Feb 12 05:52:03 tier2-home kernel: [<c0164a4b>] lookup_one_len+0x54/0x63 Feb 12 05:52:03 tier2-home kernel: [<f8c8bdf3>] nfsd_lookup+0x31c/0x3a8 [nfsd] Feb 12 05:52:03 tier2-home kernel: [<f89902e7>] svcauth_unix_set_client+0xa7/0xb5 [sunrpc] Feb 12 05:52:03 tier2-home kernel: [<f8c93351>] nfsd3_proc_lookup+0xa9/0xb3 [nfsd] Feb 12 05:52...