[gfs2-utils] branch master updated: gfs2_grow.8: Man page
improvements
by pagure@pagure.io
This is an automated email from the git hooks/post-receive script.
andyp pushed a commit to branch master
in repository gfs2-utils.
The following commit(s) were added to refs/heads/master by this push:
new f21a91e4 gfs2_grow.8: Man page improvements
f21a91e4 is described below
commit f21a91e4399e3500c90cde165f1c0087f84d5fd1
Author: Andrew Price <anprice(a)redhat.com>
AuthorDate: Wed Dec 8 14:37:38 2021 +0000
gfs2_grow.8: Man page improvements
- Restructure sentences to make gfs2_grow the subject instead of "you"
- Use more consistent formatting
- Remove some unnecessary technical details
- Move a sentence relating to the -T option to the options section
- List the lack of shrink support as a note instead of a bug
Signed-off-by: Andrew Price <anprice(a)redhat.com>
---
gfs2/man/gfs2_grow.8 | 53 ++++++++++++++++++++--------------------------------
1 file changed, 20 insertions(+), 33 deletions(-)
diff --git a/gfs2/man/gfs2_grow.8 b/gfs2/man/gfs2_grow.8
index 8bef1a47..f1ba5e4e 100644
--- a/gfs2/man/gfs2_grow.8
+++ b/gfs2/man/gfs2_grow.8
@@ -8,39 +8,25 @@ gfs2_grow - Expand a GFS2 filesystem
[\fIOPTION\fR]... <\fIDEVICE\fR|\fIMOUNTPOINT\fR>...
.SH DESCRIPTION
-gfs2_grow is used to expand a GFS2 filesystem after the device
-upon which the filesystem resides has also been expanded. By
-running gfs2_grow on a GFS2 filesystem, you are requesting that
-any spare space between the current end of the filesystem and
-the end of the device is filled with a newly initialized GFS2
-filesystem extension. When this operation is complete, the resource
-group index for the filesystem is updated so that all nodes in the
+\fBgfs2_grow\fP expands a GFS2 filesystem after the device upon which the
+filesystem resides has also been expanded. \fBgfs2_grow\fP expands the GFS2
+filesystem to utilize any unused space between the current end of the
+filesystem and the end of the block device. When this operation is complete,
+the resource group index for the filesystem is updated so that all nodes in the
cluster can use the extra storage space that has been added.
See \fBlvmlockd(8)\fP for the procedure to extend and refresh the logical
-volume prior to running gfs2_grow.
+volume prior to running \fBgfs2_grow\fP.
-You may only run gfs2_grow on a mounted filesystem; expansion of
-unmounted filesystems is not supported. You only need to
-run gfs2_grow on one node in the cluster. All the other nodes will
-see the expansion has occurred and automatically start to use the
-newly available space.
+The \fIDEVICE\fR or \fIMOUNTPOINT\fR arguments must be paths to mounted
+filesystems; expansion of unmounted filesystems is not supported.
+\fBgfs2_grow\fP need only be run on one node in the cluster. The other nodes
+will see the expansion has occurred and automatically start to use the newly
+available space.
-You must be superuser to execute \fBgfs2_grow\fP. The gfs2_grow
-tool tries to prevent you from corrupting your filesystem by checking as
-many of the likely problems as it can. When expanding a filesystem,
-only the last step of updating the resource index affects the currently
-mounted filesystem and so failure part way through the expansion process
-should leave your filesystem in its original unexpanded state.
-
-You can run gfs2_grow with the \fB-T\fP flag to get a display
-of the current state of a mounted GFS2 filesystem.
-
-The gfs2_grow tool uses the resource group (RG) size that was originally
-calculated when mkfs.gfs2 was done. This allows tools like fsck.gfs2
-to better ensure the integrity of the file system. Since the new free
-space often does not lie on even boundaries based on that RG size,
-there may be some unused space on the device after gfs2_grow is run.
+\fBgfs2_grow\fP must be run as the superuser. When the filesystem cannot be
+resized due to detected errors, \fBgfs2_grow\fP will leave the filesystem in a
+consistent state.
.SH OPTIONS
.TP
\fB-D\fP
@@ -53,16 +39,17 @@ Prints out a short usage message and exits.
Be quiet. Don't print anything.
.TP
\fB-T\fP
-Test. Do all calculations, but do not write any data to the disk and do
-not expand the filesystem. This is used to discover what the tool would
-have done were it run without this flag.
+Test. Do all calculations, but do not write any data to the disk and do not
+expand the filesystem. This is used to discover what the tool would have done
+were it run without this flag. This option can be used to display the current
+state of a mounted GFS2 filesystem.
.TP
\fB-V\fP
Version. Print out version information, then exit.
-.SH BUGS
+.SH NOTES
-There is no way to shrink a GFS2 filesystem.
+Shrinking GFS2 filesystems is currently unsupported.
.SH SEE ALSO
.BR mkfs.gfs2(8)
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
2 years, 3 months
[gfs2-utils] branch master updated (59f225f8 -> 9a09357b)
by pagure@pagure.io
This is an automated email from the git hooks/post-receive script.
andyp pushed a change to branch master
in repository gfs2-utils.
from 59f225f8 libgfs2: Remove sd_max_dirres from struct gfs2_sbd
new 2bd06adc libgfs2: Remove unused fields from struct gfs2_sbd
new 9a09357b libgfs2: Rename sdp->time to sdp->sd_time
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
gfs2/convert/gfs2_convert.c | 2 +-
gfs2/edit/hexedit.c | 2 +-
gfs2/libgfs2/fs_ops.c | 4 ++--
gfs2/libgfs2/libgfs2.h | 7 ++-----
gfs2/mkfs/main_mkfs.c | 2 +-
5 files changed, 7 insertions(+), 10 deletions(-)
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
2 years, 3 months
[gfs2-utils] branch master updated: libgfs2: Remove sd_max_dirres
from struct gfs2_sbd
by pagure@pagure.io
This is an automated email from the git hooks/post-receive script.
andyp pushed a commit to branch master
in repository gfs2-utils.
The following commit(s) were added to refs/heads/master by this push:
new 59f225f8 libgfs2: Remove sd_max_dirres from struct gfs2_sbd
59f225f8 is described below
commit 59f225f8ce72bfde99f3f0f72ce4a217436186d0
Author: Andrew Price <anprice(a)redhat.com>
AuthorDate: Mon Dec 6 21:14:12 2021 +0000
libgfs2: Remove sd_max_dirres from struct gfs2_sbd
This field has never been used in gfs2-utils and removing it allows a
bunch of code to be removed from compute_constants()
Signed-off-by: Andrew Price <anprice(a)redhat.com>
---
gfs2/libgfs2/libgfs2.h | 1 -
gfs2/libgfs2/misc.c | 18 ------------------
2 files changed, 19 deletions(-)
diff --git a/gfs2/libgfs2/libgfs2.h b/gfs2/libgfs2/libgfs2.h
index 171128d7..16bef62a 100644
--- a/gfs2/libgfs2/libgfs2.h
+++ b/gfs2/libgfs2/libgfs2.h
@@ -349,7 +349,6 @@ struct gfs2_sbd {
uint32_t sd_hash_bsize_shift;
uint32_t sd_hash_ptrs;
uint32_t sd_blocks_per_bitmap;
- uint32_t sd_max_dirres;
uint32_t sd_max_height;
uint32_t sd_max_jheight;
uint64_t sd_heightsize[GFS2_MAX_META_HEIGHT];
diff --git a/gfs2/libgfs2/misc.c b/gfs2/libgfs2/misc.c
index f2bab8ef..8f1014ea 100644
--- a/gfs2/libgfs2/misc.c
+++ b/gfs2/libgfs2/misc.c
@@ -38,9 +38,6 @@ int compute_heightsize(unsigned bsize, uint64_t *heightsize,
int compute_constants(struct gfs2_sbd *sdp)
{
- uint32_t hash_blocks, ind_blocks, leaf_blocks;
- uint32_t tmp_blocks;
-
sdp->md.next_inum = 1;
sdp->sd_bsize_shift = ffs(sdp->sd_bsize) - 1;
@@ -58,21 +55,6 @@ int compute_constants(struct gfs2_sbd *sdp)
sdp->sd_blocks_per_bitmap = (sdp->sd_bsize - sizeof(struct gfs2_meta_header))
* GFS2_NBBY;
- /* Compute maximum reservation required to add a entry to a directory */
-
- hash_blocks = DIV_RU(sizeof(uint64_t) * (1 << GFS2_DIR_MAX_DEPTH),
- sdp->sd_jbsize);
-
- ind_blocks = 0;
- for (tmp_blocks = hash_blocks; tmp_blocks > sdp->sd_diptrs;) {
- tmp_blocks = DIV_RU(tmp_blocks, sdp->sd_inptrs);
- ind_blocks += tmp_blocks;
- }
-
- leaf_blocks = 2 + GFS2_DIR_MAX_DEPTH;
-
- sdp->sd_max_dirres = hash_blocks + ind_blocks + leaf_blocks;
-
if (compute_heightsize(sdp->sd_bsize, sdp->sd_heightsize, &sdp->sd_max_height,
sdp->sd_bsize, sdp->sd_diptrs, sdp->sd_inptrs)) {
return -1;
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
2 years, 3 months