From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sog-mx-2.v43.ch3.sourceforge.com ([172.29.43.192] helo=mx.sourceforge.net) by sfs-ml-2.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1WhcEO-00065e-9T for ltp-list@lists.sourceforge.net; Tue, 06 May 2014 10:04:12 +0000 Received: from [59.151.112.132] (helo=heian.cn.fujitsu.com) by sog-mx-2.v43.ch3.sourceforge.com with esmtp (Exim 4.76) id 1WhcEM-0008NX-K4 for ltp-list@lists.sourceforge.net; Tue, 06 May 2014 10:04:12 +0000 Message-ID: <5368B313.4010201@cn.fujitsu.com> Date: Tue, 6 May 2014 18:01:55 +0800 From: Xiaoguang Wang MIME-Version: 1.0 References: <1389353374.2061.9.camel@G08JYZSD130126> <1389409991.2061.14.camel@G08JYZSD130126> <20140224193305.GC31562@rei> <1393309618.1952.52.camel@G08JYZSD130126> <5368A32E.7070805@oracle.com> In-Reply-To: <5368A32E.7070805@oracle.com> Subject: Re: [LTP] [PATCH v3] linkat/linkat02.c: add new error number tests List-Id: Linux Test Project General Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ltp-list-bounces@lists.sourceforge.net To: Shuang Qiu Cc: ltp-list Hi, On 05/06/2014 04:54 PM, Shuang Qiu wrote: > Hello, > On 02/25/2014 02:26 PM, Zeng Linggang wrote: >> + >> + SAFE_TOUCH(cleanup, TEST_EMLINK, 0666, NULL); >> + >> + while (1) { >> + sprintf(lname, "%s%ld", BASENAME, ++link_max); >> + TEST(link(TEST_EMLINK, lname)); >> + if (TEST_RETURN == -1) { >> + switch (TEST_ERRNO) { >> + case EMLINK: >> + tst_resm(TINFO, "for %s the max links is %ld", >> + fstype, link_max); >> + break; >> + default: >> + tst_brkm(TBROK | TTERRNO, cleanup, >> + "Unexpected error: "); >> + break; >> + } >> + break; >> + } >> + } >> +} >> > Should it give a limit max number here when test EMLINK to handler the > filesystems which unlimited link count. > AFAIK,it use 2^31 - 1 with xfs: > /* > * The 32 bit link count in the inode theoretically maxes out at UINT_MAX. > * Since the pathconf interface is signed, we use 2^31 - 1 instead. > * The old inode format had a 16 bit link count, so its maximum is > USHRT_MAX. > */ > #define XFS_MAXLINK ((1U << 31) - 1U) > #define XFS_MAXLINK_1 65535U > > We are not able to reach such limitation. Yeah, I think so. Or we should make the file system hard coded to ext2/3/4. Regards, Xiaoguang Wang > > Thanks > Shuang > > ------------------------------------------------------------------------------ > Is your legacy SCM system holding you back? Join Perforce May 7 to find out: > • 3 signs your SCM is hindering your productivity > • Requirements for releasing software faster > • Expert tips and advice for migrating your SCM now > http://p.sf.net/sfu/perforce > _______________________________________________ > Ltp-list mailing list > Ltp-list@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/ltp-list > ------------------------------------------------------------------------------ Is your legacy SCM system holding you back? Join Perforce May 7 to find out: • 3 signs your SCM is hindering your productivity • Requirements for releasing software faster • Expert tips and advice for migrating your SCM now http://p.sf.net/sfu/perforce _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list