ports/filesystems/e2fsprogs-core/files/extrapatch-no-sbrk
Robert Clausecker 6e2da9672f filesystems: add new category for file systems and related utilities
The filesystems category houses file systems and file system utilities.
It is added mainly to turn the sysutils/fusefs-* pseudo-category into
a proper one, but is also useful for the sundry of other file systems
related ports found in the tree.

Ports that seem like they belong there are moved to the new category.
Two ports, sysutils/fusefs-funionfs and sysutils/fusefs-fusepak are
not moved as they currently don't fetch and don't have TIMESTAMP set
in their distinfo, but that is required to be able to push a rename
of the port by the pre-receive hook.

Approved by:	portmgr (rene)
Reviewed by:	mat
Pull Request:	https://github.com/freebsd/freebsd-ports/pull/302
PR:		281988
2024-11-06 16:17:35 +01:00

34 lines
1.1 KiB
Text

diff -up ./e2fsck/e2fsck.h.orig ./e2fsck/e2fsck.h
--- ./e2fsck/e2fsck.h.orig 2018-05-16 01:42:44.000000000 +0200
+++ ./e2fsck/e2fsck.h 2018-07-07 12:50:43.420944000 +0200
@@ -134,7 +134,7 @@ struct dx_dirblock_info {
#define DX_FLAG_FIRST 4
#define DX_FLAG_LAST 8
-#define RESOURCE_TRACK
+#undef RESOURCE_TRACK
#ifdef RESOURCE_TRACK
/*
diff -up ./resize/resource_track.c.orig ./resize/resource_track.c
--- ./resize/resource_track.c.orig 2018-05-16 01:42:44.000000000 +0200
+++ ./resize/resource_track.c 2018-07-07 14:24:54.728576000 +0200
@@ -27,7 +27,6 @@ void init_resource_track(struct resource
io_stats io_start = 0;
track->desc = desc;
- track->brk_start = sbrk(0);
gettimeofday(&track->time_start, 0);
#ifdef HAVE_GETRUSAGE
#ifdef sun
@@ -84,9 +83,7 @@ void print_resource_track(ext2_resize_t
kbytes(malloc_info.arena), kbytes(malloc_info.hblkhd),
kbytes(malloc_info.uordblks), kbytes(malloc_info.fordblks));
#else
- printf("Memory used: %lu, ",
- (unsigned long) (((char *) sbrk(0)) -
- ((char *) track->brk_start)));
+ printf("Memory used: unknown, ");
#endif
#ifdef HAVE_GETRUSAGE
getrusage(RUSAGE_SELF, &r);