Received: by 2002:a05:6a10:6d25:0:0:0:0 with SMTP id gq37csp1924631pxb; Mon, 13 Sep 2021 08:16:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzFJSzqsnlZBwT63WxQMlIryUV/81v1wF2Y56laHvzO9ddKxRX1RkDNo/WEP+a8clFXX7Zk X-Received: by 2002:a17:906:a01:: with SMTP id w1mr13556112ejf.117.1631546208009; Mon, 13 Sep 2021 08:16:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631546208; cv=none; d=google.com; s=arc-20160816; b=e2NggP0F1URdfOY8a7W+M+oRlsHFmE08wkurz38Cl5CvP6EP3GArrCq4Q+OJz05plY Yjl717hhOUoi2Pf5xudv0RMov/ObHtPLLG2j4vfHVkhTovsjMjMFi8euElC1elf7Kada bgDDw7WyXJme3LaEFTMKStNbEgMvnRItfGCV2Aa9HEuEBtxUi0T5jB82WGZC19SDWhGd z+PZm4mHUs32Q860H7ue0Or2YdH1KbnNT1MaNZiB75UOaawXzatLFsQuhAHnN2pcpiMc gZyAx4WDwS/zdl2xtL8JGb5gBNDoLEjofXXDGoREALwPJivlFl3yfzaWTFqIHks5pdbO UavA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:cc :references:to:from:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=JyO+R0eWKCW9UDCCeZfpjO7DE9L4mgM9xZntgOqdjYw=; b=ngXZG2YVnZUGdqVAjf96ibroTl48E+n0/7l7T6Olr1WkvDbBS4HFRh3gPQ1ZXYGB6e Mb+hTxETjghxNPhTIRu14tZUfLurDZMqEI1NrlaF46Wu6mWleT/djv/w6oCtFyizua+7 9UqW+srssEYQPIYLWLGpnPJ2B8l7qP2qVx45Dg5D+VzFu5YZESO8ExlXYFVH17mGLxhc nerqDI8q4darpOGMgxI7b7FxFFLuru85VA4sTTb+JLjIsG2d0DVkGuzsoD3yTQE88fH4 h1e0jnf7dJ9t1T4wf0cNKD6WGC1DYzxLmK7I2YEgxLgNtNUKqipGBxFgtyte6hSrJvdr xzgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@paragon-software.com header.s=mail header.b=pV6BVazs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=paragon-software.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d17si7284657edx.448.2021.09.13.08.16.22; Mon, 13 Sep 2021 08:16:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@paragon-software.com header.s=mail header.b=pV6BVazs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=paragon-software.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231934AbhIMPQK (ORCPT + 99 others); Mon, 13 Sep 2021 11:16:10 -0400 Received: from relayfre-01.paragon-software.com ([176.12.100.13]:52986 "EHLO relayfre-01.paragon-software.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347011AbhIMPP2 (ORCPT ); Mon, 13 Sep 2021 11:15:28 -0400 Received: from dlg2.mail.paragon-software.com (vdlg-exch-02.paragon-software.com [172.30.1.105]) by relayfre-01.paragon-software.com (Postfix) with ESMTPS id BA40D1D17; Mon, 13 Sep 2021 18:14:06 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paragon-software.com; s=mail; t=1631546046; bh=JyO+R0eWKCW9UDCCeZfpjO7DE9L4mgM9xZntgOqdjYw=; h=Date:Subject:From:To:References:CC:In-Reply-To; b=pV6BVazsNGy5DfX5JEwi5pnn7v/uAs7wXAjgI7r2lbxROziTJ1AS5BXXdTcUIEJbA imYSAo3MOtdNjYvMhgjE/oatykw14poLngTTJ21kdJ2nbYjxmOeL49MLYpeUux02S1 z0l3gIroLA9B6nsKBSzgDdGLI4EMmMFVUh+1IXaA= Received: from [192.168.211.103] (192.168.211.103) by vdlg-exch-02.paragon-software.com (172.30.1.105) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Mon, 13 Sep 2021 18:14:06 +0300 Message-ID: Date: Mon, 13 Sep 2021 18:14:05 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.1.0 Subject: [PATCH 2/3] fs/ntfs3: Change max hardlinks limit to 4000 Content-Language: en-US From: Konstantin Komarov To: References: CC: , In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [192.168.211.103] X-ClientProxiedBy: vobn-exch-01.paragon-software.com (172.30.72.13) To vdlg-exch-02.paragon-software.com (172.30.1.105) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org xfstest generic/041 works with 3003, so we need to raise limit. Signed-off-by: Konstantin Komarov --- fs/ntfs3/ntfs.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/fs/ntfs3/ntfs.h b/fs/ntfs3/ntfs.h index 6bb3e595263b..6c604204d77b 100644 --- a/fs/ntfs3/ntfs.h +++ b/fs/ntfs3/ntfs.h @@ -20,9 +20,11 @@ #define NTFS_NAME_LEN 255 -/* ntfs.sys used 500 maximum links on-disk struct allows up to 0xffff. */ -#define NTFS_LINK_MAX 0x400 -//#define NTFS_LINK_MAX 0xffff +/* + * ntfs.sys used 500 maximum links on-disk struct allows up to 0xffff. + * xfstest generic/041 creates 3003 hardlinks. + */ +#define NTFS_LINK_MAX 4000 /* * Activate to use 64 bit clusters instead of 32 bits in ntfs.sys. -- 2.33.0