@@ -59,6 +59,7 @@ static int smb2_compound_op(const unsigned int xid, struct cifs_tcon *tcon,
59
59
struct cifs_sb_info * cifs_sb , const char * full_path ,
60
60
__u32 desired_access , __u32 create_disposition , __u32 create_options ,
61
61
umode_t mode , void * ptr , int command , struct cifsFileInfo * cfile ,
62
+ __u8 * * extbuf , size_t * extbuflen ,
62
63
struct kvec * err_iov , int * err_buftype )
63
64
{
64
65
struct cop_vars * vars = NULL ;
@@ -539,7 +540,7 @@ int smb2_query_path_info(const unsigned int xid, struct cifs_tcon *tcon,
539
540
cifs_get_readable_path (tcon , full_path , & cfile );
540
541
rc = smb2_compound_op (xid , tcon , cifs_sb , full_path , FILE_READ_ATTRIBUTES , FILE_OPEN ,
541
542
create_options , ACL_NO_MODE , data , SMB2_OP_QUERY_INFO , cfile ,
542
- err_iov , err_buftype );
543
+ NULL , NULL , err_iov , err_buftype );
543
544
if (rc == - EOPNOTSUPP ) {
544
545
if (err_iov [0 ].iov_base && err_buftype [0 ] != CIFS_NO_BUFFER &&
545
546
((struct smb2_hdr * )err_iov [0 ].iov_base )-> Command == SMB2_CREATE &&
@@ -555,7 +556,7 @@ int smb2_query_path_info(const unsigned int xid, struct cifs_tcon *tcon,
555
556
cifs_get_readable_path (tcon , full_path , & cfile );
556
557
rc = smb2_compound_op (xid , tcon , cifs_sb , full_path , FILE_READ_ATTRIBUTES ,
557
558
FILE_OPEN , create_options , ACL_NO_MODE , data ,
558
- SMB2_OP_QUERY_INFO , cfile , NULL , NULL );
559
+ SMB2_OP_QUERY_INFO , cfile , NULL , NULL , NULL , NULL );
559
560
}
560
561
561
562
out :
@@ -589,7 +590,7 @@ int smb311_posix_query_path_info(const unsigned int xid, struct cifs_tcon *tcon,
589
590
cifs_get_readable_path (tcon , full_path , & cfile );
590
591
rc = smb2_compound_op (xid , tcon , cifs_sb , full_path , FILE_READ_ATTRIBUTES , FILE_OPEN ,
591
592
create_options , ACL_NO_MODE , data , SMB2_OP_POSIX_QUERY_INFO , cfile ,
592
- err_iov , err_buftype );
593
+ NULL , NULL , err_iov , err_buftype );
593
594
if (rc == - EOPNOTSUPP ) {
594
595
/* BB TODO: When support for special files added to Samba re-verify this path */
595
596
if (err_iov [0 ].iov_base && err_buftype [0 ] != CIFS_NO_BUFFER &&
@@ -606,7 +607,7 @@ int smb311_posix_query_path_info(const unsigned int xid, struct cifs_tcon *tcon,
606
607
cifs_get_readable_path (tcon , full_path , & cfile );
607
608
rc = smb2_compound_op (xid , tcon , cifs_sb , full_path , FILE_READ_ATTRIBUTES ,
608
609
FILE_OPEN , create_options , ACL_NO_MODE , data ,
609
- SMB2_OP_POSIX_QUERY_INFO , cfile , NULL , NULL );
610
+ SMB2_OP_POSIX_QUERY_INFO , cfile , NULL , NULL , NULL , NULL );
610
611
}
611
612
612
613
out :
@@ -624,7 +625,7 @@ smb2_mkdir(const unsigned int xid, struct inode *parent_inode, umode_t mode,
624
625
return smb2_compound_op (xid , tcon , cifs_sb , name ,
625
626
FILE_WRITE_ATTRIBUTES , FILE_CREATE ,
626
627
CREATE_NOT_FILE , mode , NULL , SMB2_OP_MKDIR ,
627
- NULL , NULL , NULL );
628
+ NULL , NULL , NULL , NULL , NULL );
628
629
}
629
630
630
631
void
@@ -646,7 +647,7 @@ smb2_mkdir_setinfo(struct inode *inode, const char *name,
646
647
tmprc = smb2_compound_op (xid , tcon , cifs_sb , name ,
647
648
FILE_WRITE_ATTRIBUTES , FILE_CREATE ,
648
649
CREATE_NOT_FILE , ACL_NO_MODE ,
649
- & data , SMB2_OP_SET_INFO , cfile , NULL , NULL );
650
+ & data , SMB2_OP_SET_INFO , cfile , NULL , NULL , NULL , NULL );
650
651
if (tmprc == 0 )
651
652
cifs_i -> cifsAttrs = dosattrs ;
652
653
}
@@ -658,7 +659,7 @@ smb2_rmdir(const unsigned int xid, struct cifs_tcon *tcon, const char *name,
658
659
drop_cached_dir_by_name (xid , tcon , name , cifs_sb );
659
660
return smb2_compound_op (xid , tcon , cifs_sb , name , DELETE , FILE_OPEN ,
660
661
CREATE_NOT_FILE , ACL_NO_MODE ,
661
- NULL , SMB2_OP_RMDIR , NULL , NULL , NULL );
662
+ NULL , SMB2_OP_RMDIR , NULL , NULL , NULL , NULL , NULL );
662
663
}
663
664
664
665
int
@@ -667,7 +668,7 @@ smb2_unlink(const unsigned int xid, struct cifs_tcon *tcon, const char *name,
667
668
{
668
669
return smb2_compound_op (xid , tcon , cifs_sb , name , DELETE , FILE_OPEN ,
669
670
CREATE_DELETE_ON_CLOSE | OPEN_REPARSE_POINT ,
670
- ACL_NO_MODE , NULL , SMB2_OP_DELETE , NULL , NULL , NULL );
671
+ ACL_NO_MODE , NULL , SMB2_OP_DELETE , NULL , NULL , NULL , NULL , NULL );
671
672
}
672
673
673
674
static int
@@ -686,7 +687,7 @@ smb2_set_path_attr(const unsigned int xid, struct cifs_tcon *tcon,
686
687
}
687
688
rc = smb2_compound_op (xid , tcon , cifs_sb , from_name , access ,
688
689
FILE_OPEN , 0 , ACL_NO_MODE , smb2_to_name ,
689
- command , cfile , NULL , NULL );
690
+ command , cfile , NULL , NULL , NULL , NULL );
690
691
smb2_rename_path :
691
692
kfree (smb2_to_name );
692
693
return rc ;
@@ -727,7 +728,7 @@ smb2_set_path_size(const unsigned int xid, struct cifs_tcon *tcon,
727
728
cifs_get_writable_path (tcon , full_path , FIND_WR_ANY , & cfile );
728
729
return smb2_compound_op (xid , tcon , cifs_sb , full_path ,
729
730
FILE_WRITE_DATA , FILE_OPEN , 0 , ACL_NO_MODE ,
730
- & eof , SMB2_OP_SET_EOF , cfile , NULL , NULL );
731
+ & eof , SMB2_OP_SET_EOF , cfile , NULL , NULL , NULL , NULL );
731
732
}
732
733
733
734
int
@@ -754,7 +755,7 @@ smb2_set_file_info(struct inode *inode, const char *full_path,
754
755
rc = smb2_compound_op (xid , tcon , cifs_sb , full_path ,
755
756
FILE_WRITE_ATTRIBUTES , FILE_OPEN ,
756
757
0 , ACL_NO_MODE , buf , SMB2_OP_SET_INFO , cfile ,
757
- NULL , NULL );
758
+ NULL , NULL , NULL , NULL );
758
759
cifs_put_tlink (tlink );
759
760
return rc ;
760
761
}
0 commit comments