Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 318492
b: refs/heads/master
c: 25e2663
h: refs/heads/master
v: v3
  • Loading branch information
Pavel Shilovsky committed Jul 24, 2012
1 parent eaa20de commit 36bb3bd
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9224dfc2f92f4faff7b3d9e169255278129b47e8
refs/heads/master: 25e266320caca88a4463385b6f4ef696111d2c9a
18 changes: 18 additions & 0 deletions trunk/fs/cifs/smb2ops.c
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,23 @@ smb2_get_srv_inum(const unsigned int xid, struct cifs_tcon *tcon,
return 0;
}

static char *
smb2_build_path_to_root(struct smb_vol *vol, struct cifs_sb_info *cifs_sb,
struct cifs_tcon *tcon)
{
int pplen = vol->prepath ? strlen(vol->prepath) : 0;
char *full_path = NULL;

/* if no prefix path, simply set path to the root of share to "" */
if (pplen == 0) {
full_path = kzalloc(2, GFP_KERNEL);
return full_path;
}

cERROR(1, "prefixpath is not supported for SMB2 now");
return NULL;
}

struct smb_version_operations smb21_operations = {
.setup_request = smb2_setup_request,
.check_receive = smb2_check_receive,
Expand All @@ -210,6 +227,7 @@ struct smb_version_operations smb21_operations = {
.is_path_accessible = smb2_is_path_accessible,
.query_path_info = smb2_query_path_info,
.get_srv_inum = smb2_get_srv_inum,
.build_path_to_root = smb2_build_path_to_root,
};

struct smb_version_values smb21_values = {
Expand Down

0 comments on commit 36bb3bd

Please sign in to comment.