public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
* [PATCH][pseudo] ports/linux: add wrapper for statvfs64
@ 2024-01-29 16:26 Matt Madison
  2024-01-29 16:48 ` [OE-core] " Khem Raj
  0 siblings, 1 reply; 4+ messages in thread
From: Matt Madison @ 2024-01-29 16:26 UTC (permalink / raw)
  To: openembedded-core; +Cc: Matt Madison

rpm 4.19 now builds with LFS64 support enabled by default,
so it calls statvfs64() to get the space available on the
filesystem it is installing packages into.  Add a wrapper
for this call so the right filesystem is used.

Signed-off-by: Matt Madison <matt@madison.systems>
---
 ports/linux/statvfs/guts/statvfs64.c | 15 +++++++++++++++
 ports/linux/statvfs/wrapfuncs.in     |  1 +
 2 files changed, 16 insertions(+)
 create mode 100644 ports/linux/statvfs/guts/statvfs64.c

diff --git a/ports/linux/statvfs/guts/statvfs64.c b/ports/linux/statvfs/guts/statvfs64.c
new file mode 100644
index 0000000..856d3db
--- /dev/null
+++ b/ports/linux/statvfs/guts/statvfs64.c
@@ -0,0 +1,15 @@
+/*
+ * Copyright (c) 2018 Wind River Systems; see
+ * guts/COPYRIGHT for information.
+ *
+ * SPDX-License-Identifier: LGPL-2.1-only
+ *
+ * int statvfs64(const char *path, struct statvfs64 *buf)
+ *	int rc = -1;
+ */
+
+	rc = real_statvfs64(path, buf);
+
+/*	return rc;
+ * }
+ */
diff --git a/ports/linux/statvfs/wrapfuncs.in b/ports/linux/statvfs/wrapfuncs.in
index 1afb64d..6a59660 100644
--- a/ports/linux/statvfs/wrapfuncs.in
+++ b/ports/linux/statvfs/wrapfuncs.in
@@ -1 +1,2 @@
 int statvfs(const char *path, struct statvfs *buf);
+int statvfs64(const char *path, struct statvfs64 *buf);
-- 
2.34.1



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [OE-core] [PATCH][pseudo] ports/linux: add wrapper for statvfs64
  2024-01-29 16:26 [PATCH][pseudo] ports/linux: add wrapper for statvfs64 Matt Madison
@ 2024-01-29 16:48 ` Khem Raj
  2024-01-29 18:03   ` Matt Madison
  0 siblings, 1 reply; 4+ messages in thread
From: Khem Raj @ 2024-01-29 16:48 UTC (permalink / raw)
  To: Matt Madison; +Cc: openembedded-core

[-- Attachment #1: Type: text/plain, Size: 2040 bytes --]

On Mon, Jan 29, 2024 at 8:26 AM Matt Madison <matt@madison.systems> wrote:

> rpm 4.19 now builds with LFS64 support enabled by default,
> so it calls statvfs64() to get the space available on the
> filesystem it is installing packages into.  Add a wrapper
> for this call so the right filesystem is used.
>
> Signed-off-by: Matt Madison <matt@madison.systems>
> ---
>  ports/linux/statvfs/guts/statvfs64.c | 15 +++++++++++++++
>  ports/linux/statvfs/wrapfuncs.in     |  1 +
>  2 files changed, 16 insertions(+)
>  create mode 100644 ports/linux/statvfs/guts/statvfs64.c
>
> diff --git a/ports/linux/statvfs/guts/statvfs64.c
> b/ports/linux/statvfs/guts/statvfs64.c
> new file mode 100644
> index 0000000..856d3db
> --- /dev/null
> +++ b/ports/linux/statvfs/guts/statvfs64.c
> @@ -0,0 +1,15 @@
> +/*
> + * Copyright (c) 2018 Wind River Systems; see
> + * guts/COPYRIGHT for information.
> + *
> + * SPDX-License-Identifier: LGPL-2.1-only
> + *
> + * int statvfs64(const char *path, struct statvfs64 *buf)
> + *     int rc = -1;
> + */
> +
> +       rc = real_statvfs64(path, buf);
> +
> +/*     return rc;
> + * }
> + */
> diff --git a/ports/linux/statvfs/wrapfuncs.in b/ports/linux/statvfs/
> wrapfuncs.in
> index 1afb64d..6a59660 100644
> --- a/ports/linux/statvfs/wrapfuncs.in
> +++ b/ports/linux/statvfs/wrapfuncs.in
> @@ -1 +1,2 @@
>  int statvfs(const char *path, struct statvfs *buf);
> +int statvfs64(const char *path, struct statvfs64 *buf);


Statvfs is under a conditional I wonder if this should be too

>
> --
> 2.34.1
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#194464):
> https://lists.openembedded.org/g/openembedded-core/message/194464
> Mute This Topic: https://lists.openembedded.org/mt/104034596/1997914
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [
> raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>

[-- Attachment #2: Type: text/html, Size: 3341 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [OE-core] [PATCH][pseudo] ports/linux: add wrapper for statvfs64
  2024-01-29 16:48 ` [OE-core] " Khem Raj
@ 2024-01-29 18:03   ` Matt Madison
  2024-01-29 18:16     ` Khem Raj
  0 siblings, 1 reply; 4+ messages in thread
From: Matt Madison @ 2024-01-29 18:03 UTC (permalink / raw)
  To: Khem Raj; +Cc: openembedded-core

[-- Attachment #1: Type: text/plain, Size: 2276 bytes --]

Should be covered by the same conditional - the guts are in the same
directory.

-M

On Mon, Jan 29, 2024 at 8:48 AM Khem Raj <raj.khem@gmail.com> wrote:

>
>
> On Mon, Jan 29, 2024 at 8:26 AM Matt Madison <matt@madison.systems> wrote:
>
>> rpm 4.19 now builds with LFS64 support enabled by default,
>> so it calls statvfs64() to get the space available on the
>> filesystem it is installing packages into.  Add a wrapper
>> for this call so the right filesystem is used.
>>
>> Signed-off-by: Matt Madison <matt@madison.systems>
>> ---
>>  ports/linux/statvfs/guts/statvfs64.c | 15 +++++++++++++++
>>  ports/linux/statvfs/wrapfuncs.in     |  1 +
>>  2 files changed, 16 insertions(+)
>>  create mode 100644 ports/linux/statvfs/guts/statvfs64.c
>>
>> diff --git a/ports/linux/statvfs/guts/statvfs64.c
>> b/ports/linux/statvfs/guts/statvfs64.c
>> new file mode 100644
>> index 0000000..856d3db
>> --- /dev/null
>> +++ b/ports/linux/statvfs/guts/statvfs64.c
>> @@ -0,0 +1,15 @@
>> +/*
>> + * Copyright (c) 2018 Wind River Systems; see
>> + * guts/COPYRIGHT for information.
>> + *
>> + * SPDX-License-Identifier: LGPL-2.1-only
>> + *
>> + * int statvfs64(const char *path, struct statvfs64 *buf)
>> + *     int rc = -1;
>> + */
>> +
>> +       rc = real_statvfs64(path, buf);
>> +
>> +/*     return rc;
>> + * }
>> + */
>> diff --git a/ports/linux/statvfs/wrapfuncs.in b/ports/linux/statvfs/
>> wrapfuncs.in
>> index 1afb64d..6a59660 100644
>> --- a/ports/linux/statvfs/wrapfuncs.in
>> +++ b/ports/linux/statvfs/wrapfuncs.in
>> @@ -1 +1,2 @@
>>  int statvfs(const char *path, struct statvfs *buf);
>> +int statvfs64(const char *path, struct statvfs64 *buf);
>
>
> Statvfs is under a conditional I wonder if this should be too
>
>>
>> --
>> 2.34.1
>>
>>
>> -=-=-=-=-=-=-=-=-=-=-=-
>> Links: You receive all messages sent to this group.
>> View/Reply Online (#194464):
>> https://lists.openembedded.org/g/openembedded-core/message/194464
>> Mute This Topic: https://lists.openembedded.org/mt/104034596/1997914
>> Group Owner: openembedded-core+owner@lists.openembedded.org
>> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [
>> raj.khem@gmail.com]
>> -=-=-=-=-=-=-=-=-=-=-=-
>>
>>

[-- Attachment #2: Type: text/html, Size: 3838 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [OE-core] [PATCH][pseudo] ports/linux: add wrapper for statvfs64
  2024-01-29 18:03   ` Matt Madison
@ 2024-01-29 18:16     ` Khem Raj
  0 siblings, 0 replies; 4+ messages in thread
From: Khem Raj @ 2024-01-29 18:16 UTC (permalink / raw)
  To: Matt Madison; +Cc: openembedded-core

On Mon, Jan 29, 2024 at 10:03 AM Matt Madison <matt@madison.systems> wrote:
>
> Should be covered by the same conditional - the guts are in the same directory.
>

right seems so. Thanks it looks ok now

> -M
>
> On Mon, Jan 29, 2024 at 8:48 AM Khem Raj <raj.khem@gmail.com> wrote:
>>
>>
>>
>> On Mon, Jan 29, 2024 at 8:26 AM Matt Madison <matt@madison.systems> wrote:
>>>
>>> rpm 4.19 now builds with LFS64 support enabled by default,
>>> so it calls statvfs64() to get the space available on the
>>> filesystem it is installing packages into.  Add a wrapper
>>> for this call so the right filesystem is used.
>>>
>>> Signed-off-by: Matt Madison <matt@madison.systems>
>>> ---
>>>  ports/linux/statvfs/guts/statvfs64.c | 15 +++++++++++++++
>>>  ports/linux/statvfs/wrapfuncs.in     |  1 +
>>>  2 files changed, 16 insertions(+)
>>>  create mode 100644 ports/linux/statvfs/guts/statvfs64.c
>>>
>>> diff --git a/ports/linux/statvfs/guts/statvfs64.c b/ports/linux/statvfs/guts/statvfs64.c
>>> new file mode 100644
>>> index 0000000..856d3db
>>> --- /dev/null
>>> +++ b/ports/linux/statvfs/guts/statvfs64.c
>>> @@ -0,0 +1,15 @@
>>> +/*
>>> + * Copyright (c) 2018 Wind River Systems; see
>>> + * guts/COPYRIGHT for information.
>>> + *
>>> + * SPDX-License-Identifier: LGPL-2.1-only
>>> + *
>>> + * int statvfs64(const char *path, struct statvfs64 *buf)
>>> + *     int rc = -1;
>>> + */
>>> +
>>> +       rc = real_statvfs64(path, buf);
>>> +
>>> +/*     return rc;
>>> + * }
>>> + */
>>> diff --git a/ports/linux/statvfs/wrapfuncs.in b/ports/linux/statvfs/wrapfuncs.in
>>> index 1afb64d..6a59660 100644
>>> --- a/ports/linux/statvfs/wrapfuncs.in
>>> +++ b/ports/linux/statvfs/wrapfuncs.in
>>> @@ -1 +1,2 @@
>>>  int statvfs(const char *path, struct statvfs *buf);
>>> +int statvfs64(const char *path, struct statvfs64 *buf);
>>
>>
>> Statvfs is under a conditional I wonder if this should be too
>>>
>>>
>>> --
>>> 2.34.1
>>>
>>>
>>> -=-=-=-=-=-=-=-=-=-=-=-
>>> Links: You receive all messages sent to this group.
>>> View/Reply Online (#194464): https://lists.openembedded.org/g/openembedded-core/message/194464
>>> Mute This Topic: https://lists.openembedded.org/mt/104034596/1997914
>>> Group Owner: openembedded-core+owner@lists.openembedded.org
>>> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [raj.khem@gmail.com]
>>> -=-=-=-=-=-=-=-=-=-=-=-
>>>


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-01-29 18:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-29 16:26 [PATCH][pseudo] ports/linux: add wrapper for statvfs64 Matt Madison
2024-01-29 16:48 ` [OE-core] " Khem Raj
2024-01-29 18:03   ` Matt Madison
2024-01-29 18:16     ` Khem Raj

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox