xfs
[Top] [All Lists]

Re: Symbolic Links & XFS

To: AndyLiebman@xxxxxxx
Subject: Re: Symbolic Links & XFS
From: Eric Sandeen <sandeen@xxxxxxx>
Date: Mon, 26 Jan 2004 10:09:31 -0600 (CST)
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: <110.2d63d229.2d466fda@aol.com>
Sender: linux-xfs-bounce@xxxxxxxxxxx
From xfs_dinode.h:

/*
 * 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)

For comparison, EXT2_LINK_MAX is 32000

I don't think you'll have any problem.

-Eric

On Mon, 26 Jan 2004 AndyLiebman@xxxxxxx wrote:

> A question about symbolic links and Linux XFS. Is there any limitation on the 
> number of symbolic links one could make to a file under XFS in Linux? 
> 
> For example, if I had 2000 files in a directory, and each file had 20 
> symbolic links to it, is there any reason why I might get into trouble 
> because of the 
> links? (And could it make any difference how long the directory and 
> subdirectory and filenames are?) If so, is XFS any different in regard to 
> symbolic 
> links compared to other Linux filesystems? 
> 
> I have no reason to suspect there could be a problem with XFS, but I want to 
> make sure there won't be before I put a big system into production that uses 
> tons of symbolic links. 
> 
> Thanks in advance for your replies. 
> 
> Andy Liebman
> 
> 


<Prev in Thread] Current Thread [Next in Thread>