search for: btrfs_encode_fh

Displaying 3 results from an estimated 3 matches for "btrfs_encode_fh".

2011 Feb 16
2
RE: [PATCH V2 0/3] drivers/staging: zcache: dynamic page cache/swap compression
...;> tmem pool, id=3 > >>>> Feb 14 00:39:20 lupus kernel: [ 2951.853188] BUG: unable to handle > >>>> kernel paging request at 0000000001400050 > >>>> Feb 14 00:39:20 lupus kernel: [ 2951.853219] IP: > [<ffffffff8133ef1b>] > >>>> btrfs_encode_fh+0x2b/0x120 > >>>> Feb 14 00:39:20 lupus kernel: [ 2951.853242] PGD 0 > >>>> Feb 14 00:39:20 lupus kernel: [ 2951.853251] Oops: 0000 [#1] > PREEMPT SMP > >>>> Feb 14 00:39:20 lupus kernel: [ 2951.853275] last sysfs file: > >>>> /sys/devi...
2010 Nov 17
0
[PATCH] Btrfs: handle NFS lookups properly
...ame, name_ptr, name_len); + btrfs_free_path(path); + + /* + * have to add the null termination to make sure that reconnect_path + * gets the right len for strlen + */ + name[name_len] = ''\0''; + + return 0; +} + const struct export_operations btrfs_export_ops = { .encode_fh = btrfs_encode_fh, .fh_to_dentry = btrfs_fh_to_dentry, .fh_to_parent = btrfs_fh_to_parent, .get_parent = btrfs_get_parent, + .get_name = btrfs_get_name, }; -- 1.6.6.1 -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org Mor...
2008 Jul 20
26
[PATCH] NFS support for btrfs - v2
...e.h" +#include "disk-io.h" +#include "btrfs_inode.h" +#include "print-tree.h" +#include "export.h" + +/* The size of encoded fh is the type number of the fh itself */ +#define BTRFS_FID_NON_CONNECTABLE 5 +#define BTRFS_FID_CONNECTABLE 8 + +static int btrfs_encode_fh(struct dentry *dentry, u32 *fh, int *max_len, + int connectable) +{ + struct btrfs_fid *fid = (struct btrfs_fid *)fh; + struct inode *inode = dentry->d_inode; + int len = *max_len; + + if ((len < BTRFS_FID_NON_CONNECTABLE ) || + (connectable && len < BTRFS_FID_CONNECTABLE)) { +...