From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 11CAEC282D7 for ; Mon, 11 Feb 2019 05:19:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E0F5D20855 for ; Mon, 11 Feb 2019 05:19:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726079AbfBKFTn (ORCPT ); Mon, 11 Feb 2019 00:19:43 -0500 Received: from mx1.redhat.com ([209.132.183.28]:45968 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725962AbfBKFTn (ORCPT ); Mon, 11 Feb 2019 00:19:43 -0500 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 1FC6E83F4C for ; Mon, 11 Feb 2019 05:19:43 +0000 (UTC) Received: from test1135.test.redhat.com (vpn2-54-20.bne.redhat.com [10.64.54.20]) by smtp.corp.redhat.com (Postfix) with ESMTP id A365F10021B6 for ; Mon, 11 Feb 2019 05:19:42 +0000 (UTC) From: Ronnie Sahlberg To: linux-fsdevel Subject: [PATCH 0/1] cifs: setfattr -x test for cifs Date: Mon, 11 Feb 2019 15:19:31 +1000 Message-Id: <20190211051932.20542-1-lsahlber@redhat.com> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Mon, 11 Feb 2019 05:19:43 +0000 (UTC) Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org List, Please find a small test for cifs that tests that setfattr -x for a non existing attribute will fail correctly. This is for a bug we recently fixed in cifs.ko where we used to return successr, since that is what the SMB2 response from the server would be. Xfstests already have testing for setfattr -x for nonexisting attributes in generic/097 but we can not use that test in cifs since we can only allow the use of the user namespace. (No way to lock down access to read/write EA subspaces such as 'system.' prefixes and such.) Since tests only tests a small subset of generic/097 it made more sense to me to add this as a cifs specific test instead of adding a new, redundant, generic/* test.