lfs-path2fid(1)

NAME
lfs-path2fid - print the file identifier for a given pathname

SYNOPSIS
lfs path2fid [--parents] <directory|file>...

DESCRIPTION
lfs path2fid prints the File Identifier for the specified file or directory. The FID is unique for each file in the filesystem, and is never reused for other files if the file is deleted.
The FID is also available for regular files via lfs getstripe -F.

OPTIONS

--parents
    Print out the parent FID and name(s) of the given entries. If an entry has multiple links, these are displayed on a single line, tab-separated.

EXAMPLES

$ lfs path2fid /mnt/lustre/etc/hosts
    [0x200000403:0x11f:0x0]

$ lfs path2fid --parents /mnt/lustre/etc/hosts
    [0x200000403:0x101:0x0]/hosts

SEE ALSO
lfs(1), lfs-fid2path(1), lfs-getstripe(1), llapi_path2fid(3), llapi_path2parent(3), lustre(7)