Skip to content

Commit

Permalink
ksmbd: Update to version 3.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hauke committed Jul 14, 2024
1 parent 466198c commit d5ba3ca
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package/kernel/ksmbd/Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=ksmbd
PKG_VERSION:=3.4.8
PKG_VERSION:=3.5.0
PKG_RELEASE:=1

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://github.com/cifsd-team/ksmbd/releases/download/$(PKG_VERSION)
PKG_HASH:=209bfba4dc5c50007942a3ec24f86a7f7c628618ac07f79c62e3404dc247d495
PKG_HASH:=ceb11850bee8ff3575228e1b691d83d710cd9cb586bdaf8e5769d06b82eaaf05

PKG_LICENSE:=GPL-2.0-or-later
PKG_LICENSE_FILES:=COPYING
Expand Down
8 changes: 7 additions & 1 deletion package/kernel/ksmbd/patches/02-kernel-5.10.220-build.patch
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,20 @@ https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux

--- a/vfs.c
+++ b/vfs.c
@@ -1081,12 +1081,18 @@ static int __ksmbd_vfs_rename(struct ksm
@@ -1582,7 +1582,9 @@ static int __ksmbd_vfs_rename(struct ksm

err = -ENOTEMPTY;
if (dst_dent != trap_dent && !d_really_is_positive(dst_dent)) {
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 12, 0)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 12, 0) || \
+ (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 10, 220) && \
+ LINUX_VERSION_CODE < KERNEL_VERSION(5, 11, 0))
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 3, 0)
struct renamedata rd = {
.old_mnt_idmap = src_idmap,
@@ -1594,10 +1596,14 @@ static int __ksmbd_vfs_rename(struct ksm
};
#else
struct renamedata rd = {
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 12, 0)
.old_mnt_userns = src_user_ns,
Expand Down

0 comments on commit d5ba3ca

Please sign in to comment.