search for: mnt_root

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

Did you mean: gpt_root
2010 Jan 14
0
[PATCH] Include subvolume= and metadata_ratio= in /cat/proc
...q_puts(seq, ",discard"); if (!(root->fs_info->sb->s_flags & MS_POSIXACL)) seq_puts(seq, ",noacl"); + if( root->fs_info->metadata_ratio ) + seq_printf(seq, ",metadata_ratio=%d", + root->fs_info->metadata_ratio); + spin_lock(&vfs->mnt_root->d_lock); + if (vfs->mnt_root->d_name.len != 1 || + vfs->mnt_root->d_name.name[0] != ''/''){ + seq_puts(seq, ",subvol="); + seq_puts(seq, vfs->mnt_root->d_name.name); + } + spin_unlock(&vfs->mnt_root->d_lock); return 0; } -- gp...
2011 Aug 26
1
Reg: Workaround to use pivot_root while using "rootfs" for "/" ?
...facing an issue due to pivot_root. The return code from the system call ?pivot_root? is EINVAL (Invalid arguments). I isolated the issue to this specific condition check within the system call. This is an code snippet from fs/namespace.c::pivot_root * error = -EINVAL; if (root.mnt->mnt_root != root.dentry) goto out2; /* not a mountpoint */ if (root.mnt->mnt_parent == root.mnt) << this represents a circular mount reference goto out2; /* not attached */ if (new.mnt->mnt_root != new.dentry) goto out2; /* not a mountpoint */ if (new.mnt...
2011 Apr 06
3
[PATCH V2] Btrfs: fix subvolume mount by name problem when default mount subvolume is set
...(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); + deactivate_locked_super(s); + goto error_free_subvol_name; + } + } mnt->mnt_sb = s; mnt->mnt_root = root; -- 1.7.0.4 -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
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
2008 Apr 05
11
[PATCH RFC 1/5] vringfd syscall
...+ + /* Must be a power of two, and representable by u16 */ + if (!num_descs || (num_descs & (num_descs-1)) || num_descs > 65536) { + err = -EINVAL; + goto out; + } + + fd = get_unused_fd(); + if (fd < 0) { + err = fd; + goto out; + } + + filp = alloc_file(vring_mnt, dget(vring_mnt->mnt_root), FMODE_WRITE, + &vring_fops); + if (!filp) { + err = -ENFILE; + goto put_fd; + } + + filp->private_data = vr = kmalloc(sizeof(*vr), GFP_KERNEL); + if (!vr) { + err = -ENOMEM; + goto put_filp; + } + + /* Set up pointers into ring. */ + vring_init(&vr->ring, num_descs, addr, PA...
2008 Apr 05
11
[PATCH RFC 1/5] vringfd syscall
...+ + /* Must be a power of two, and representable by u16 */ + if (!num_descs || (num_descs & (num_descs-1)) || num_descs > 65536) { + err = -EINVAL; + goto out; + } + + fd = get_unused_fd(); + if (fd < 0) { + err = fd; + goto out; + } + + filp = alloc_file(vring_mnt, dget(vring_mnt->mnt_root), FMODE_WRITE, + &vring_fops); + if (!filp) { + err = -ENFILE; + goto put_fd; + } + + filp->private_data = vr = kmalloc(sizeof(*vr), GFP_KERNEL); + if (!vr) { + err = -ENOMEM; + goto put_filp; + } + + /* Set up pointers into ring. */ + vring_init(&vr->ring, num_descs, addr, PA...