mfsmetasearch(8) | This is part of MooseFS | mfsmetasearch(8) |
mfsmetasearch - uses MooseFS metadata to find specific files
mfsmetasearch [-f J|C|C x] [-o output_file] [-e expr | -c chunkid_file] metadata_file
mfsmetasearch is a tool that finds files and other objects in MooseFS's metadata that either match the provided expression (if -e option is used) or contain one or more of the chunk numbers listed in hexadecimal format in the provided file (if -c option is used).
The expression can consist of a number of symbols, values and operators. A symbol is a property of a file, a value is the value of that property for a particular file and operators build the entire expression to indicate if a certain property should match, be different etc.
Symbols and values:
inode inode number (value: numeric) type inode type (constants list: file,directory,symlink,fifo,blockdev,chardev,socket,trash,sustained) eattr extra attributes bit mask (bit constants list: noowner,noattrcache,noentrycache,nodatacache,snapshot,undeletable,appendonly,immutable) sclass number of storage class (value: numeric; class numbers can be checked via CGI or CLI) uid user id (value: numeric) gid group id (value: numeric) mode access mode bit mask (bit constants list: sticky,sgid,suid,ur,uw,ux,gr,gw,gx,or,ow,ox) umode access mode for uid bit mask (bit constants list: read,write,execute) gmode access mode for gid bit mask (bit constants list: read,write,execute) omode access mode for others bit mask (bit constants list: read,write,execute) atime access time (value: numeric - unix timestamp in seconds) mtime modify time (value: numeric - unix timestamp in seconds) ctime change time (value: numeric - unix timestamp in seconds) tretention trash retention in hours (value: numeric) length file length (value: numeric; zero for other objects) major major id (value: numeric; for blockdev and chardev only) minor minor id (value: numeric; for blockdev and chardev only) chunkid chunk's numerical id (value: numeric; expression will be tested for all file chunks and accepted if one of them is true)
Accepted operators (C-style): - + * / % >> << < <= > >= == != ~ & ^ | ! && ^^ || ?:
Report bugs to <bugs@moosefs.com>.
Copyright (C) 2024 Jakub Kruszona-Zawadzki, Saglabs SA
This file is part of MooseFS.
MooseFS is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2 (only).
MooseFS is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with MooseFS; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA or visit http://www.gnu.org/licenses/gpl-2.0.html
mfsmaster(8), mfsmetadump(8)
September 2024 | MooseFS 4.56.6-1 |