1 .TH llapi_search_tgt 3 "2019 Jun 06" "Lustre User API"
3 llapi_search_tgt \- verify OST or MDT is in specified pool
6 .B #include <lustre/lustreapi.h>
8 .IB int " llapi_search_tgt(" "const char *fsname" ", " "const char *pool_name" ,
9 .BI "const char *tgt_name" ", " "bool is_mdt" );
11 .IB int " llapi_search_mdt(" "const char *fsname" ", " "const char *pool_name" ,
12 .BI "const char *tgt_name" );
14 .IB int " llapi_search_ost(" "const char *fsname" ", " "const char *pool_name" ,
15 .BI "const char *tgt_name" );
19 verifies that the specified
21 is a valid MDT or OST (depending on whether
27 respectively) in the filesystem named
29 and (if specified) in the pool named
31 of that filesystem. At least
37 if just checking for the existence of the target, and
41 if only checking the existence of
48 functions are simple convenience/compatibility wrappers of
52 appropriately for the target type.
64 is found in the specified pool
74 if it is not found in the specified pool
76 A negative errno is returned if an error occurred, in which case errno
77 is also set appropriately.
82 is NULL or zero-length, or both
91 is specified but is not part of
94 .BR llapi_pool_name_verify (3),