hwloc-compress-dir.1 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. .\" -*- nroff -*-
  2. .\" Copyright © 2013-2021 Inria. All rights reserved.
  3. .\" See COPYING in top-level directory.
  4. .TH HWLOC-COMPRESS-DIR "1" "Sep 07, 2023" "2.9.3" "hwloc"
  5. .SH NAME
  6. hwloc-compress-dir \- Compress a directory of XML topologies
  7. .
  8. .\" **************************
  9. .\" Synopsis Section
  10. .\" **************************
  11. .SH SYNOPSIS
  12. .B hwloc-compress-dir
  13. [\fIoptions\fR]
  14. <inputdir>
  15. <outputdir>
  16. \fR
  17. .
  18. .\" **************************
  19. .\" Options Section
  20. .\" **************************
  21. .SH OPTIONS
  22. .TP
  23. \fB\-R \-\-reverse\fR
  24. Uncompress a previously compressed directory.
  25. .TP
  26. \fB\-v \-\-verbose\fR
  27. Display verbose messages.
  28. .TP
  29. \fB\-\-version\fR
  30. Report version and exit.
  31. .TP
  32. \fB\-h\fR \fB\-\-help\fR
  33. Display help message and exit.
  34. .
  35. .\" **************************
  36. .\" Description Section
  37. .\" **************************
  38. .SH DESCRIPTION
  39. .
  40. hwloc-compress-dir takes an input directory containing XML exports
  41. and tries to compress it by computing topology diffs between them
  42. (with the hwloc-diff program).
  43. Each file is copied in the output directory either as a diff if it
  44. could be compressed, or as its original entire file otherwise.
  45. .
  46. .PP
  47. hwloc-compress-dir may recompress a directory that was previously
  48. compressed. All input files that are already in the output directory,
  49. either compressed or not, are ignored. New input files are compressed
  50. as much as possible as usual.
  51. .
  52. .PP
  53. For each file of the directory, the output filename is
  54. the same as the original if not compressed,
  55. otherwise its extension is changed to \fB.diff.xml\fR.
  56. .
  57. .PP
  58. Compressed files are based on another non-compressed topology.
  59. Its name is stored in the \fBrefname\fR topology diff attribute.
  60. .
  61. .PP
  62. The generated output diff files may be used with hwloc-patch
  63. just like any file generated by hwloc-diff.
  64. .
  65. .\" **************************
  66. .\" Examples Section
  67. .\" **************************
  68. .SH EXAMPLES
  69. .PP
  70. To compress the input files from directory in into directory out:
  71. $ hwloc-compress-dir in out
  72. .
  73. .\" **************************
  74. .\" Return value section
  75. .\" **************************
  76. .SH RETURN VALUE
  77. Upon successful execution, hwloc-compress-dir returns 0.
  78. .
  79. .PP
  80. hwloc-compress-dir will return nonzero if any kind of error occurs,
  81. such as (but not limited to) failure to parse the command line.
  82. .
  83. .\" **************************
  84. .\" See also section
  85. .\" **************************
  86. .SH SEE ALSO
  87. .
  88. .ft R
  89. hwloc(7), lstopo(1), hwloc-diff(1), hwloc-patch(1)
  90. .sp