Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to ignore hardlinks in dsync, dcmp and dwalk #565

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions doc/rst/dcmp.1.rst
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ OPTIONS

Open files with O_NOATIME flag.

.. option:: -H, --nohardlink

Ignore hardlinks.

.. option:: --progress N

Print progress message to stdout approximately every N seconds.
Expand Down
4 changes: 4 additions & 0 deletions doc/rst/dsync.1.rst
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ OPTIONS

Delete extraneous files from destination.

.. option:: -H, --nohardlink

Ignore hardlinks.

.. option:: -L, --dereference

Dereference symbolic links and copy the target file or directory
Expand Down
4 changes: 4 additions & 0 deletions doc/rst/dwalk.1.rst
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ OPTIONS

Print files to the screen.

.. option:: -H, --nohardlink

Ignore hardlinks.

.. option:: -L, --dereference

Dereference symbolic links and walk the target file or directory
Expand Down
8 changes: 4 additions & 4 deletions man/dbcast.1
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
.\" Man page generated from reStructuredText.
.
.TH "DBCAST" "1" "Feb 04, 2022" "0.11.1" "mpiFileUtils"
.SH NAME
dbcast \- distributed broadcast
.
.nr rst2man-indent-level 0
.
Expand Down Expand Up @@ -30,6 +27,9 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
..
.TH "DBCAST" "1" "Nov 07, 2023" "0.11.1" "mpiFileUtils"
.SH NAME
dbcast \- distributed broadcast
.SH SYNOPSIS
.sp
\fBdbcast [OPTION] SRC DEST\fP
Expand All @@ -56,7 +56,7 @@ number of MPI processes.
.TP
.B \-s, \-\-size SIZE
The chunk size in bytes used to segment files during the broadcast.
Units like “MB” and “GB” should be immediately follow the number
Units like "MB" and "GB" should be immediately follow the number
without spaces (ex. 2MB). The default size is 1MB. It is recommended
to use the stripe size of a file if this is known.
.UNINDENT
Expand Down
8 changes: 4 additions & 4 deletions man/dbz2.1
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
.\" Man page generated from reStructuredText.
.
.TH "DBZ2" "1" "Feb 04, 2022" "0.11.1" "mpiFileUtils"
.SH NAME
dbz2 \- distributed bz2 compression
.
.nr rst2man-indent-level 0
.
Expand Down Expand Up @@ -30,6 +27,9 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
..
.TH "DBZ2" "1" "Nov 07, 2023" "0.11.1" "mpiFileUtils"
.SH NAME
dbz2 \- distributed bz2 compression
.SH SYNOPSIS
.sp
\fBdbz2 [OPTIONS] [\-z|\-d] FILE\fP
Expand Down Expand Up @@ -64,7 +64,7 @@ Overwrite the output file, if it exists.
.TP
.B \-b, \-\-blocksize SIZE
Set the compression block size, from 1 to 9.
Where 1=100kB and 9=900kB. Default is 9.
Where 1=100kB ... and 9=900kB. Default is 9.
.UNINDENT
.INDENT 0.0
.TP
Expand Down
18 changes: 9 additions & 9 deletions man/dchmod.1
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
.\" Man page generated from reStructuredText.
.
.TH "DCHMOD" "1" "Feb 04, 2022" "0.11.1" "mpiFileUtils"
.SH NAME
dchmod \- distributed tool to set permissions and group
.
.nr rst2man-indent-level 0
.
Expand Down Expand Up @@ -30,9 +27,12 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
..
.TH "DCHMOD" "1" "Nov 07, 2023" "0.11.1" "mpiFileUtils"
.SH NAME
dchmod \- distributed tool to set permissions and group
.SH SYNOPSIS
.sp
\fBdchmod [OPTION] PATH \fP
\fBdchmod [OPTION] PATH ...\fP
.SH DESCRIPTION
.sp
Parallel MPI application to recursively change permissions and/or group
Expand Down Expand Up @@ -62,8 +62,8 @@ Change group to specified GROUP name or numeric group id.
.TP
.B \-m, \-\-mode MODE
The mode to apply to each item. MODE may be octal or symbolic syntax
similar to \fBchmod(1)\fP\&. In symbolic notation, ugoa are supported
as are rwxX. As with chmod, if no leading letter ugoa is provided,
similar to \fBchmod(1)\fP\&. In symbolic notation, "ugoa" are supported
as are "rwxX". As with chmod, if no leading letter "ugoa" is provided,
mode bits are combined with umask to determine the actual mode.
.UNINDENT
.INDENT 0.0
Expand All @@ -73,7 +73,7 @@ Attempt to change every item. By default, dchmod avoids unncessary
chown and chmod calls, for example trying to change the group
on an item that already has the correct group, or trying to change
the group on an item that is not owned by the user running the tool.
With force, dchmod executes chown/chmod calls on every item.
With \-\-force, dchmod executes chown/chmod calls on every item.
.UNINDENT
.INDENT 0.0
.TP
Expand All @@ -96,7 +96,7 @@ Only modify items whose full path matches REGEX, processed by
.INDENT 0.0
.TP
.B \-n, \-\-name
Change exclude and match to apply to item name rather than its
Change \-\-exclude and \-\-match to apply to item name rather than its
full path.
.UNINDENT
.INDENT 0.0
Expand Down Expand Up @@ -151,7 +151,7 @@ regex:
.sp
\fBmpirun \-np 128 dchmod \-\-name \-\-exclude ‘afilename’ \-\-mode u+rw /directory\fP
.sp
Note: You can use match to change file permissions on all of the
Note: You can use \-\-match to change file permissions on all of the
files/directories that match the regex.
.SH SEE ALSO
.sp
Expand Down
27 changes: 16 additions & 11 deletions man/dcmp.1
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
.\" Man page generated from reStructuredText.
.
.TH "DCMP" "1" "Feb 04, 2022" "0.11.1" "mpiFileUtils"
.SH NAME
dcmp \- distributed compare
.
.nr rst2man-indent-level 0
.
Expand Down Expand Up @@ -30,6 +27,9 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
..
.TH "DCMP" "1" "Nov 07, 2023" "0.11.1" "mpiFileUtils"
.SH NAME
dcmp \- distributed compare
.SH SYNOPSIS
.sp
\fBdcmp [OPTION] SRC DEST\fP
Expand All @@ -54,26 +54,26 @@ in which case, each option should provide a different output file name.
.INDENT 0.0
.TP
.B \-t, \-\-text
Change output to write files in text format rather than binary.
Change \-\-output to write files in text format rather than binary.
.UNINDENT
.INDENT 0.0
.TP
.B \-b, \-\-base
Enable base checks and normal stdout results when output is used.
Enable base checks and normal stdout results when \-\-output is used.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-bufsize SIZE
Set the I/O buffer to be SIZE bytes. Units like “MB” and “GB” may
Set the I/O buffer to be SIZE bytes. Units like "MB" and "GB" may
immediately follow the number without spaces (e.g. 8MB). The default
bufsize is 4MB.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-chunksize SIZE
Multiple processes copy a large file in parallel by dividing it into chunks.
Set chunk to be at minimum SIZE bytes. Units like “MB” and
“GB” can immediately follow the number without spaces (e.g. 64MB).
Set chunk to be at minimum SIZE bytes. Units like "MB" and
"GB" can immediately follow the number without spaces (e.g. 64MB).
The default chunksize is 4MB.
.UNINDENT
.INDENT 0.0
Expand All @@ -91,6 +91,11 @@ Use O_DIRECT to avoid caching file data.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-open\-noatime
Open files with O_NOATIME flag.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-progress N
Print progress message to stdout approximately every N seconds.
The number of seconds must be a non\-negative integer.
Expand Down Expand Up @@ -125,7 +130,7 @@ Print the command usage, and the list of options available.
.SH EXPRESSIONS
.sp
An expression is made up of one or more conditions, where each condition specifies a field and a state.
A single condition consists of a field name, an ‘=’ sign, and a state name.
A single condition consists of a field name, an \(aq=\(aq sign, and a state name.
.sp
Valid fields are listed below, along with the property of the entry that is checked.
.TS
Expand Down Expand Up @@ -288,7 +293,7 @@ CONTENT=COMMON => EXISTS=COMMON@TYPE=COMMON@SIZE=COMMON@CONTENT=COMMON
.sp
A successful check on any other field also implies that EXIST=COMMON.
.sp
When used with the \-o option, one must also specify a file name at the end of the expression, separated with a ‘:’.
When used with the \-o option, one must also specify a file name at the end of the expression, separated with a \(aq:\(aq.
The list of any entries that match the expression are written to the named file.
For example, to list any entries matching the above expression to a file named outfile1,
one should use the following option:
Expand All @@ -303,7 +308,7 @@ one should use the following option:
.UNINDENT
.UNINDENT
.sp
If the base option is given or when no output option is specified,
If the \-\-base option is given or when no output option is specified,
the following expressions are checked and numeric results are reported to stdout:
.INDENT 0.0
.INDENT 3.5
Expand Down
33 changes: 25 additions & 8 deletions man/dcp.1
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
.\" Man page generated from reStructuredText.
.
.TH "DCP" "1" "Feb 04, 2022" "0.11.1" "mpiFileUtils"
.SH NAME
dcp \- distributed copy
.
.nr rst2man-indent-level 0
.
Expand Down Expand Up @@ -30,6 +27,9 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
..
.TH "DCP" "1" "Nov 07, 2023" "0.11.1" "mpiFileUtils"
.SH NAME
dcp \- distributed copy
.SH SYNOPSIS
.sp
\fBdcp [OPTION] SRC DEST\fP
Expand All @@ -46,22 +46,22 @@ file system, and it splits large file copies across multiple processes.
.INDENT 0.0
.TP
.B \-\-bufsize SIZE
Set the I/O buffer to be SIZE bytes. Units like “MB” and “GB” may
Set the I/O buffer to be SIZE bytes. Units like "MB" and "GB" may
immediately follow the number without spaces (e.g. 8MB). The default
bufsize is 4MB.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-chunksize SIZE
Multiple processes copy a large file in parallel by dividing it into chunks.
Set chunk to be at minimum SIZE bytes. Units like “MB” and
“GB” can immediately follow the number without spaces (e.g. 64MB).
Set chunk to be at minimum SIZE bytes. Units like "MB" and
"GB" can immediately follow the number without spaces (e.g. 64MB).
The default chunksize is 4MB.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-xattrs WHICH
Copy extended attributes (xattrs) from source files to target files.
Copy extended attributes ("xattrs") from source files to target files.
WHICH determines which xattrs are copied. Options are to copy no xattrs,
all xattrs, xattrs not excluded by /etc/xattr.conf, or all xattrs except
those which have special meaning to Lustre. Certain xattrs control Lustre
Expand Down Expand Up @@ -104,7 +104,7 @@ that each symbolic link refers to.
.B \-P, \-\-no\-dereference
Do not follow symbolic links in source paths. Effectviely allows
symbolic links to be copied when the link target is not valid
or there is not permission to read the link’s target.
or there is not permission to read the link\(aqs target.
.UNINDENT
.INDENT 0.0
.TP
Expand All @@ -118,6 +118,11 @@ Use O_DIRECT to avoid caching file data.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-open\-noatime
Open files with O_NOATIME flag.
.UNINDENT
.INDENT 0.0
.TP
.B \-S, \-\-sparse
Create sparse files when possible.
.UNINDENT
Expand All @@ -130,6 +135,18 @@ A value of 0 disables progress messages.
.UNINDENT
.INDENT 0.0
.TP
.B \-G, \-\-gid GID
Set the effective group ID to perform the copy operation. The copy
may fail if the group does not have sufficient privileges.
.UNINDENT
.INDENT 0.0
.TP
.B \-U, \-\-uid UID
Set the effective user ID to perform the copy operation. The copy
may fail if the user does not have sufficient privileges.
.UNINDENT
.INDENT 0.0
.TP
.B \-v, \-\-verbose
Run in verbose mode.
.UNINDENT
Expand Down
11 changes: 8 additions & 3 deletions man/ddup.1
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
.\" Man page generated from reStructuredText.
.
.TH "DDUP" "1" "Feb 04, 2022" "0.11.1" "mpiFileUtils"
.SH NAME
ddup \- report files with identical content
.
.nr rst2man-indent-level 0
.
Expand Down Expand Up @@ -30,6 +27,9 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
..
.TH "DDUP" "1" "Nov 07, 2023" "0.11.1" "mpiFileUtils"
.SH NAME
ddup \- report files with identical content
.SH SYNOPSIS
.sp
\fBddup [OPTION] PATH\fP
Expand All @@ -45,6 +45,11 @@ Multiple sets of duplicate files can be matched using this final reported hash.
.SH OPTIONS
.INDENT 0.0
.TP
.B \-\-open\-noatime
Open files with O_NOATIME flag, if possible.
.UNINDENT
.INDENT 0.0
.TP
.B \-d, \-\-debug LEVEL
Set verbosity level. LEVEL can be one of: fatal, err, warn, info, dbg.
.UNINDENT
Expand Down
Loading