Skip to contentSkip to conversation

fs/cifs: fix regression in cifs_create_mf_symlink()

PATCH In review Björn Baumbach 3 participants 4 messages Jun 10, 2014 – Jun 17, 2014

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fs/cifs: fix regression in cifs_create_mf_symlink()

commit d81b8a40e2ece0a9ab57b1fe1798e291e75bf8fc ("CIFS: Cleanup cifs open codepath") changed disposition to FILE_OPEN.

---
 fs/cifs/link.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/cifs/link.c +1 -1
index 264ece7..68559fd 100644
@@ -374,7 +374,7 @@ cifs_create_mf_symlink(unsigned int xid, struct cifs_tcon *tcon,
 	oparms.cifs_sb = cifs_sb;
 	oparms.desired_access = GENERIC_WRITE;
 	oparms.create_options = create_options;
-	oparms.disposition = FILE_OPEN;
+	oparms.disposition = FILE_CREATE;
 	oparms.path = path;
 	oparms.fid = &fid;
 	oparms.reconnect = false;
Signature · 1 line
1.7.9.5
#1 lore raw

Hi Steve,

any comments on this? How can we get this fixed upstream?

Thanks!
metze

Am 10.06.2014 12:03, schrieb Björn Baumbach:

Quoted 28 lines

commit d81b8a40e2ece0a9ab57b1fe1798e291e75bf8fc
("CIFS: Cleanup cifs open codepath")
changed disposition to FILE_OPEN.

---
 fs/cifs/link.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/cifs/link.c +1 -1
index 264ece7..68559fd 100644
@@ -374,7 +374,7 @@ cifs_create_mf_symlink(unsigned int xid, struct cifs_tcon *tcon,
 	oparms.cifs_sb = cifs_sb;
 	oparms.desired_access = GENERIC_WRITE;
 	oparms.create_options = create_options;
-	oparms.disposition = FILE_OPEN;
+	oparms.disposition = FILE_CREATE;
 	oparms.path = path;
 	oparms.fid = &fid;
 	oparms.reconnect = false;
#2 lore raw

Although I have merged this into cifs-2.6.git for-next, in my testing I am also seeing this fail with vers=3.0 (and probably 2.0 and 2.1) so I would like to fix that too (and mfsymlinks may be at least as important there)

Quoted 37 lines · Stefan (metze) Metzmacher

Hi Steve,

any comments on this? How can we get this fixed upstream?

Thanks!
metze

Am 10.06.2014 12:03, schrieb Björn Baumbach:

Quoted 28 lines

commit d81b8a40e2ece0a9ab57b1fe1798e291e75bf8fc ("CIFS: Cleanup cifs open codepath") changed disposition to FILE_OPEN.

---
 fs/cifs/link.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/cifs/link.c +1 -1
index 264ece7..68559fd 100644
@@ -374,7 +374,7 @@ cifs_create_mf_symlink(unsigned int xid, struct cifs_tcon *tcon,
      oparms.cifs_sb = cifs_sb;
      oparms.desired_access = GENERIC_WRITE;
      oparms.create_options = create_options;
-     oparms.disposition = FILE_OPEN;
+     oparms.disposition = FILE_CREATE;
      oparms.path = path;
      oparms.fid = &fid;
      oparms.reconnect = false;
Signature · 3 lines
Thanks,

Steve
#3 lore raw

Hi Steve,

Quoted 4 lines

Although I have merged this into cifs-2.6.git for-next, in my testing I am also seeing this fail with vers=3.0 (and probably 2.0 and 2.1) so I would like to fix that too (and mfsymlinks may be at least as important there)

Thanks! When can we expect this to be proposed for 3.16 (and stable 3.14/3.15)?

metze