From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from picard.linux.it (picard.linux.it [213.254.12.146]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5AD4F606A33F for ; Fri, 4 Dec 2026 15:00:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key, unprotected) header.d=suse.cz header.i=@suse.cz header.a=rsa-sha256 header.s=susede2_rsa header.b=IeQHgcdJ; dkim=fail reason="signature verification failed" header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=XKc+W/ey; dkim=fail reason="signature verification failed" (1024-bit key) header.d=suse.cz header.i=@suse.cz header.a=rsa-sha256 header.s=susede2_rsa header.b=IeQHgcdJ; dkim=neutral header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=XKc+W/ey Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id A91773E8CA8 for ; Fri, 4 Dec 2026 16:00:13 +0100 (CET) Received: from in-4.smtp.seeweb.it (in-4.smtp.seeweb.it [217.194.8.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id 8186B3E1F2A for ; Fri, 4 Dec 2026 15:59:57 +0100 (CET) Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by in-4.smtp.seeweb.it (Postfix) with ESMTPS id 0E09F1000DA1 for ; Fri, 4 Dec 2026 15:59:56 +0100 (CET) Received: from imap1.dmz-prg2.suse.org (unknown [10.150.64.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 1F03E60034; Fri, 4 Dec 2026 14:59:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1796396396; h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=78DTRyApKSYs5kz1rXaM4TrFcw3XwNoNfaW/YhE+d4Y=; b=IeQHgcdJ+eHco4sqQs9xaHHH0OvP1o3olWyi2xjTdv9dSUAVZu5XJF7UFgibZKmikQ8yh/ m6Wh3PRFMFRWIRaR4pBPHGdB0n5cWkF0QGeky4+5hBbC+dXwW5AmluPzGXfmYJuTIgfapL YY90ArAqtwMgCxOhPfK5maRkz2uyTwY= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1796396396; h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=78DTRyApKSYs5kz1rXaM4TrFcw3XwNoNfaW/YhE+d4Y=; b=XKc+W/ey8Is6K9sPOMlxZnTztHJxdLBOow1A7Uufi8IHn2rAQOpfBB6kAhD8ddNfVkWpRv OaN99uYAPg0baLAA== Authentication-Results: smtp-out2.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1796396396; h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=78DTRyApKSYs5kz1rXaM4TrFcw3XwNoNfaW/YhE+d4Y=; b=IeQHgcdJ+eHco4sqQs9xaHHH0OvP1o3olWyi2xjTdv9dSUAVZu5XJF7UFgibZKmikQ8yh/ m6Wh3PRFMFRWIRaR4pBPHGdB0n5cWkF0QGeky4+5hBbC+dXwW5AmluPzGXfmYJuTIgfapL YY90ArAqtwMgCxOhPfK5maRkz2uyTwY= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1796396396; h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=78DTRyApKSYs5kz1rXaM4TrFcw3XwNoNfaW/YhE+d4Y=; b=XKc+W/ey8Is6K9sPOMlxZnTztHJxdLBOow1A7Uufi8IHn2rAQOpfBB6kAhD8ddNfVkWpRv OaN99uYAPg0baLAA== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 054E61342D; Fri, 4 Dec 2026 14:59:54 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id df3/JGrVEmtSZQAAD6G6ig (envelope-from ); Fri, 04 Dec 2026 14:59:54 +0000 Date: Fri, 4 Dec 2026 15:59:44 +0100 From: Petr Vorel To: Hongli Li Message-ID: <20261204145944.GA313272@pevik> References: <20261204093927.673808-1-hongli.li@intel.com> X-Archived-By: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20261204093927.673808-1-hongli.li@intel.com> X-Spam-Level: X-Spamd-Result: default: False [-12.50 / 50.00]; SUSE_INTERNAL_BYPASS(-9.00)[]; BAYES_HAM(-3.00)[100.00%]; NEURAL_HAM_LONG(-1.00)[-1.000]; MID_RHS_NOT_FQDN(0.50)[]; HAS_REPLYTO(0.30)[pvorel@suse.cz]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; TO_DN_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MISSING_XM_UA(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCPT_COUNT_FIVE(0.00)[5]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; DKIM_SIGNED(0.00)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519]; RCVD_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.cz:replyto,imap1.dmz-prg2.suse.org:helo]; REPLYTO_EQ_FROM(0.00)[] X-Spam-Score: -12.50 X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 X-Virus-Scanned: clamav-milter 1.0.9 at in-4.smtp.seeweb.it X-Virus-Status: Clean Subject: Re: [LTP] [PATCH] statx08: Skip FS_COMPR_FL if it can't be set X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Test Project List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Petr Vorel Cc: Konstantin Komarov , ltp@lists.linux.it, Zhenghao Niu Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "ltp" Hi all, > stx_attributes_mask only tells that an attribute can be reported, not > that it can be set with FS_IOC_SETFLAGS. > Since commit 33f29fc7c67e ("fs/ntfs3: add fileattr support") in v7.2, > ntfs3 reports STATX_ATTR_COMPRESSED in stx_attributes_mask, but its > fileattr_set() rejects FS_COMPR_FL with EOPNOTSUPP: > statx08.c:115: TBROK: ioctl(3, FS_IOC_SETFLAGS, 52): EOPNOTSUPP (95) > This also stops the .all_filesystems loop before tmpfs is tested. > On EOPNOTSUPP, drop FS_COMPR_FL and retry. First, thanks for catching this! > Tested-by: Zhenghao Niu > Signed-off-by: Hongli Li > --- > testcases/kernel/syscalls/statx/statx08.c | 13 +++++++++++++ > 1 file changed, 13 insertions(+) > diff --git a/testcases/kernel/syscalls/statx/statx08.c b/testcases/kernel/syscalls/statx/statx08.c > index caced5d3d7..28fc2be148 100644 > --- a/testcases/kernel/syscalls/statx/statx08.c > +++ b/testcases/kernel/syscalls/statx/statx08.c > @@ -111,6 +111,19 @@ static void caid_flags_setup(void) > attr |= FS_NODUMP_FL; > ret = ioctl(fd, FS_IOC_SETFLAGS, &attr); > + > + /* e.g. ntfs3 reports FS_COMPR_FL but can't set it */ > + if (ret < 0 && errno == EOPNOTSUPP && supp_compr) { > + tst_res(TCONF, "filesystem can't set FS_COMPR_FL"); > + supp_compr = 0; > + attr &= ~FS_COMPR_FL; > + > + if (!(supp_append || supp_immutable || supp_nodump)) > + tst_brk(TCONF, "no other attr to test, skip it"); Wouldn't be better if the function return int and tst_brk was handled in setup()? I'd prefer to have tst_brk(TCONF) on single place. Kind regards, Petr > + > + ret = ioctl(fd, FS_IOC_SETFLAGS, &attr); > + } > + > if (ret < 0) > tst_brk(TBROK | TERRNO, "ioctl(%i, FS_IOC_SETFLAGS, %i)", fd, attr); -- Mailing list info: https://lists.linux.it/listinfo/ltp