Linux CIFS filesystem development
 help / color / mirror / Atom feed
From: Paulo Alcantara <pc@manguebit.org>
To: Ralph Boehme <slow@samba.org>, Steve French <smfrench@gmail.com>
Cc: Jean-Baptiste Denis <jbdenis@pasteur.fr>,
	Frank Sorenson <sorenson@redhat.com>,
	Olga Kornievskaia <okorniev@redhat.com>,
	Benjamin Coddington <bcodding@redhat.com>,
	Scott Mayhew <smayhew@redhat.com>,
	CIFS <linux-cifs@vger.kernel.org>
Subject: Re: [PATCH v2] smb: client: fix data loss due to broken rename(2)
Date: Wed, 03 Sep 2025 13:19:33 -0300	[thread overview]
Message-ID: <7dbf8f8019d8e5a0cd16c47b4ae319e2@manguebit.org> (raw)
In-Reply-To: <e2a50c26-42ad-4060-9da4-96f89517ee1b@samba.org>

Ralph Boehme <slow@samba.org> writes:

> On 9/2/25 9:39 PM, Paulo Alcantara wrote:
>> Ralph Boehme <slow@samba.org> writes:
>> 
>>> Likely? How? Does a Windows client also do this stuff when the rename
>>> destination is open? All this additionaly complexity is only waiting for
>>> bugs to happen and now that we have POSIX Extensions back we should
>>> phase out this crap.
>> 
>> Claiming POSIX support and being unable to rename open files, that would
>> be even worse, no?
>
> with SMB3 POSIX support all this just works including renames, what are 
> you alluding to?

What I mean is renaming *open files*, which is currently broken in
cifs.ko for SMB2+.  IMHO, anyone using something that mentions POSIX
support would expect renaming open files just work like in any UNIX
enviroment.

The protocol allows us to implement such thing, so why not doing it?  If
you want to us to return -EBUSY when attempting to rename open files,
then we should mention it to the users to keep using SMB1 to have such
fundamental behavior working.

  reply	other threads:[~2025-09-03 16:19 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-02 16:54 [PATCH v2] smb: client: fix data loss due to broken rename(2) Paulo Alcantara
2025-09-02 18:57 ` Ralph Boehme
     [not found]   ` <CAH2r5mvqJXfgQwKLSWrfBDw8Rc88ys8a_cWB5DtD19HSDmFn5w@mail.gmail.com>
2025-09-02 19:05     ` Ralph Boehme
2025-09-02 19:39       ` Paulo Alcantara
2025-09-03 15:48         ` Ralph Boehme
2025-09-03 16:19           ` Paulo Alcantara [this message]
2025-09-04  6:04             ` Ralph Boehme
2025-09-02 19:09   ` Paulo Alcantara
2025-09-03 16:10     ` Ralph Boehme
2025-09-03 18:45       ` Paulo Alcantara
2025-09-03 19:55         ` ronnie sahlberg
2025-09-03 20:10           ` ronnie sahlberg
2025-09-03 20:28             ` Paulo Alcantara
2025-09-03 20:44               ` ronnie sahlberg
2025-09-03 20:55                 ` Paulo Alcantara
2025-09-03 20:18           ` Paulo Alcantara
2025-09-03 19:13       ` Paulo Alcantara
     [not found]   ` <notmuch-sha1-4fd369d43684b0739d61e9e931e63ca8c7e2a82c>
2025-09-02 19:10     ` Paulo Alcantara

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=7dbf8f8019d8e5a0cd16c47b4ae319e2@manguebit.org \
    --to=pc@manguebit.org \
    --cc=bcodding@redhat.com \
    --cc=jbdenis@pasteur.fr \
    --cc=linux-cifs@vger.kernel.org \
    --cc=okorniev@redhat.com \
    --cc=slow@samba.org \
    --cc=smayhew@redhat.com \
    --cc=smfrench@gmail.com \
    --cc=sorenson@redhat.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