From owner-freebsd-fs@freebsd.org Sat Mar 5 19:54:34 2016 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E7D9C9DBAB9 for ; Sat, 5 Mar 2016 19:54:34 +0000 (UTC) (envelope-from bra@fsn.hu) Received: from dg.fsn.hu (dg.fsn.hu [84.2.225.196]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "dg.fsn.hu", Issuer "dg.fsn.hu" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id A9934BA0 for ; Sat, 5 Mar 2016 19:54:34 +0000 (UTC) (envelope-from bra@fsn.hu) Received: by dg.fsn.hu (Postfix, from userid 1003) id 2E4212E7E; Sat, 5 Mar 2016 20:46:08 +0100 (CET) X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MF-ACE0E1EA [pR: 4.9824] X-CRM114-CacheID: sfid-20160305_20460_81529E6B X-CRM114-Status: UNSURE (4.9824) This message is 'unsure'; please train it! X-DSPAM-Result: Whitelisted X-DSPAM-Processed: Sat Mar 5 20:46:08 2016 X-DSPAM-Confidence: 0.9899 X-DSPAM-Probability: 0.0000 X-DSPAM-Signature: 56db3780242171590725600 X-DSPAM-Factors: 27, just, 0.01000, Date*20+46, 0.01000, Received*online.co.hu+[195.228.243.99]), 0.01000, or, 0.01000, Subject*at, 0.01000, an, 0.01000, from, 0.01000, From*"Nagy, Attila" , 0.01000, User-Agent*Mozilla/5.0, 0.01000, says, 0.01000, million, 0.01000, hard, 0.01000, hard, 0.01000, times, 0.01000, a+limitation, 0.01000, Received*Mar+2016, 0.01000, Received*by+dg.fsn.hu, 0.01000, Received*, 0.01000, Date*46+07, 0.01000, Received*Sat+5, 0.01000, To*fs+freebsd.org, 0.01000, Received*from+[IPv6, 0.01000, X-Spambayes-Classification: ham; 0.01 Received: from [IPv6:::1] (japan.t-online.co.hu [195.228.243.99]) by dg.fsn.hu (Postfix) with ESMTPSA id B49F12E7C for ; Sat, 5 Mar 2016 20:46:07 +0100 (CET) To: freebsd-fs@freebsd.org From: "Nagy, Attila" Subject: zfs and st_nlink limit at 32767 Message-ID: <56DB377F.9020205@fsn.hu> Date: Sat, 5 Mar 2016 20:46:07 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Mar 2016 19:54:35 -0000 Hi, If I create a million hard links to a file, stat -s says it has 32767: $ stat -s 900402.24.t st_dev=1709683738 st_ino=719745 st_mode=0100644 st_nlink=32767 st_uid=1001 st_gid=0 st_rdev=4294967295 st_size=81688 st_atime=1455881393 st_mtime=1455881393 st_ctime=1457206643 st_birthtime=1457206536 st_blksize=81920 st_blocks=67 st_flags=2048 Is this a limitation somewhere which is hard to remove, or just an easily fixable "legacy" from the times, when all filesystems contained this limit?