Linux CIFS filesystem development
 help / color / mirror / Atom feed
From: Huiwen He <huiwen.he@linux.dev>
To: smfrench@gmail.com, linkinjeon@kernel.org, pc@manguebit.org,
	ronniesahlberg@gmail.com, sprasad@microsoft.com, tom@talpey.com,
	bharathsm@microsoft.com, senozhatsky@chromium.org,
	dhowells@redhat.com, metze@samba.org, chenxiaosong@kylinos.cn
Cc: linux-cifs@vger.kernel.org
Subject: [PATCH v1 0/3] smb: client: fix file compression flag ioctls
Date: Sat,  6 Jun 2026 22:43:13 +0800	[thread overview]
Message-ID: <20260606144316.183032-1-huiwen.he@linux.dev> (raw)

From: Huiwen He <hehuiwen@kylinos.cn>

This series fixes three CIFS compression flag ioctl issues.

Patch 1 fixes lsattr showing random flags when the file does not
have the compressed attribute set.

Patch 2 fixes chattr +c failures caused by sending
FSCTL_SET_COMPRESSION on a handle without FILE_WRITE_DATA access.

Patch 3 fixes chattr -c failures by sending
COMPRESSION_FORMAT_NONE when FS_COMPR_FL is cleared.

Thanks,
Huiwen He

---
Link before v1:
patch 1: https://lore.kernel.org/linux-cifs/20260602105930.713403-1-huiwen.he@linux.dev
patch 2: https://lore.kernel.org/linux-cifs/20260604151859.102653-1-huiwen.he@linux.dev
patch 3: https://lore.kernel.org/linux-cifs/20260605170055.172146-1-huiwen.he@linux.dev
---
Huiwen He (3):
  smb/client: always return a value for FS_IOC_GETFLAGS
  smb/client: use writable handle for FS_IOC_SETFLAGS compression
  smb/client: allow FS_IOC_SETFLAGS to clear compression

 fs/smb/client/cifsglob.h  |   2 +-
 fs/smb/client/cifssmb.c   |   4 +-
 fs/smb/client/ioctl.c     | 151 +++++++++++++++++++++++++++++++++++---
 fs/smb/client/smb1ops.c   |   5 +-
 fs/smb/client/smb1proto.h |   2 +-
 fs/smb/client/smb2ops.c   |   4 +-
 fs/smb/client/smb2pdu.c   |   6 +-
 fs/smb/client/smb2proto.h |   3 +-
 8 files changed, 153 insertions(+), 24 deletions(-)

-- 
2.43.0


             reply	other threads:[~2026-06-06 14:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-06 14:43 Huiwen He [this message]
2026-06-06 14:43 ` [PATCH v1 1/3] smb/client: always return a value for FS_IOC_GETFLAGS Huiwen He
2026-06-06 14:43 ` [PATCH v1 2/3] smb/client: use writable handle for FS_IOC_SETFLAGS compression Huiwen He
2026-06-06 14:43 ` [PATCH v1 3/3] smb/client: allow FS_IOC_SETFLAGS to clear compression Huiwen He

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260606144316.183032-1-huiwen.he@linux.dev \
    --to=huiwen.he@linux.dev \
    --cc=bharathsm@microsoft.com \
    --cc=chenxiaosong@kylinos.cn \
    --cc=dhowells@redhat.com \
    --cc=linkinjeon@kernel.org \
    --cc=linux-cifs@vger.kernel.org \
    --cc=metze@samba.org \
    --cc=pc@manguebit.org \
    --cc=ronniesahlberg@gmail.com \
    --cc=senozhatsky@chromium.org \
    --cc=smfrench@gmail.com \
    --cc=sprasad@microsoft.com \
    --cc=tom@talpey.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox