From: Volker Lendecke Subject: Re: [PATCH v7 0/7] Add O_DENY* support for VFS and CIFS/NFS Date: Mon, 20 Jan 2014 09:14:54 +0100 Message-ID: References: <1389953232-9428-1-git-send-email-piastry@etersoft.ru> Reply-To: Volker.Lendecke-PS7XAnAlDA+VvDNblw4Uiw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-fsdevel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-nfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, wine-devel-5vRYHf7vrtgdnm+yROfE0A@public.gmane.org To: Pavel Shilovsky Return-path: Date: Mon, 20 Jan 2014 09:14:54 +0100 Content-Disposition: inline In-Reply-To: <1389953232-9428-1-git-send-email-piastry-7qunaywFIewox3rIn2DAYQ@public.gmane.org> Sender: linux-nfs-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-cifs.vger.kernel.org Hi! On Fri, Jan 17, 2014 at 02:07:05PM +0400, Pavel Shilovsky wrote: > If O_DENYDELETE flag is specified and the open succeded, > any further unlink operation will fail with -ESHAREDENIED > untill this open is closed. Now this flag is processed by > VFS and CIFS filesystem. NFS returns -EINVAL for opens > with this flag. This looks really, really good, thanks! One question: If Samba wants to open a file for delete access, there's no corresponding flag in the open permissions. There can be the case where Samba wants to open *just* for future unlink, no read or write access required. Is there a way to achieve this atomically correct? Thanks, Volker --=20 SerNet GmbH, Bahnhofsallee 1b, 37081 G=F6ttingen phone: +49-551-370000-0, fax: +49-551-370000-9 AG G=F6ttingen, HRB 2816, GF: Dr. Johannes Loxen http://www.sernet.de, mailto:kontakt-3ekOc4rQMZmzQB+pC5nmwQ@public.gmane.org -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html