All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [parisc-linux] statfs() problem with glibc-2.5
       [not found] <20070212102844.f045d760.gmsoft@gentoo.org>
@ 2007-02-12 14:13 ` Kyle McMartin
  2007-02-12 14:37 ` Guy Martin
       [not found] ` <20070212153731.846e2ad3.gmsoft@gentoo.org>
  2 siblings, 0 replies; 8+ messages in thread
From: Kyle McMartin @ 2007-02-12 14:13 UTC (permalink / raw)
  To: Guy Martin; +Cc: parisc-linux

On Mon, Feb 12, 2007 at 10:28:44AM +0100, Guy Martin wrote:
> 
> Hi all,
> 
> 
> While running and testing glibc-2.5, I've encountered the following problem :
> 

Wow. Let me get my divining rod, crystal ball, and other tools to help
out my clairvoyance...

How about you strace it and tell us what bloody syscalls it used...
_______________________________________________
parisc-linux mailing list
parisc-linux@lists.parisc-linux.org
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux

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

* Re: [parisc-linux] statfs() problem with glibc-2.5
       [not found] <20070212102844.f045d760.gmsoft@gentoo.org>
  2007-02-12 14:13 ` [parisc-linux] statfs() problem with glibc-2.5 Kyle McMartin
@ 2007-02-12 14:37 ` Guy Martin
       [not found] ` <20070212153731.846e2ad3.gmsoft@gentoo.org>
  2 siblings, 0 replies; 8+ messages in thread
From: Guy Martin @ 2007-02-12 14:37 UTC (permalink / raw)
  To: parisc-linux

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




Hi all,


After some more troubleshooting, I've found out that parisc doesn't hook up the statfs64 syscall.

Applying the attached patch and recompile glibc with updated headers makes df works again.

Apparently, the statfs64 syscalls are available since 2.5.74.


Please review the patch.


Regards,
  Guy



On Mon, 12 Feb 2007 10:28:44 +0100
Guy Martin <gmsoft@gentoo.org> wrote:

> 
> Hi all,
> 
> 
> While running and testing glibc-2.5, I've encountered the following problem :
> 
> hope bin # ./df -h
> Filesystem            Size  Used Avail Use% Mounted on
> /dev/sda3             276Y  276Y  539Z 100% /
> sysfs                18641256972210Y 18634655137640Y 70815813734120Y  21% /sys
> udev                 18641256972210Y 18634655137640Y 70815813734120Y  21% /dev
> devpts               18641256972210Y 18634655137640Y 70815813734120Y  21% /dev/pts
> shm                  18641256972210Y 18634655137640Y 70815813734120Y  21% /dev/shm
> usbfs                18641256972210Y 18634655137640Y 70815813734120Y  21% /proc/bus/usb
> playa:/usr/portage/distfiles
>                      18641256972210Y 18634655137640Y 70815813734120Y  21% /usr/portage/distfiles
> /dev/sdb4            18641256972210Y 18634655137640Y 70815813734120Y  21% /mnt/gentoo
> /dev/sdb2            18641256972210Y 18634655137640Y 70815813734120Y  21% /mnt/gentoo/boot
> 
> 
> Despite the fact that I whish I had that capacity, there is definately an issue.
> 
> This is using glibc-2.5, 2.6.20-pa0 and corresponding headers.
> 
> 
> Let me know if you need more info.
> 
> Cheers,
>   Guy
> 
> 
> 
> -- 
> Guy Martin
> Gentoo Linux - HPPA port lead
> 
> _______________________________________________
> parisc-linux mailing list
> parisc-linux@lists.parisc-linux.org
> http://lists.parisc-linux.org/mailman/listinfo/parisc-linux


-- 
Guy Martin
Gentoo Linux - HPPA port lead


[-- Attachment #2: hookup-statfs64-syscall-parisc.diff --]
[-- Type: text/x-patch, Size: 817 bytes --]

diff --git a/arch/parisc/kernel/syscall_table.S b/arch/parisc/kernel/syscall_table.S
index 5114666..fb6788f 100644
--- a/arch/parisc/kernel/syscall_table.S
+++ b/arch/parisc/kernel/syscall_table.S
@@ -403,5 +403,7 @@
 	ENTRY_COMP(move_pages)		/* 295 */
 	ENTRY_SAME(getcpu)
 	ENTRY_SAME(epoll_pwait)
+	ENTRY_COMP(statfs64)
+	ENTRY_COMP(fstatfs64)
 	/* Nothing yet */
 
diff --git a/include/asm-parisc/unistd.h b/include/asm-parisc/unistd.h
index 7c1bb8b..4369991 100644
--- a/include/asm-parisc/unistd.h
+++ b/include/asm-parisc/unistd.h
@@ -790,6 +790,8 @@
 #define __NR_move_pages		(__NR_Linux + 295)
 #define __NR_getcpu		(__NR_Linux + 296)
 #define __NR_epoll_pwait	(__NR_Linux + 297)
+#define __NR_statfs64		(__NR_Linux + 298)
+#define __NR_fstatfs64		(__NR_Linux + 299)
 
 #define __NR_Linux_syscalls     298
 

[-- Attachment #3: Type: text/plain, Size: 169 bytes --]

_______________________________________________
parisc-linux mailing list
parisc-linux@lists.parisc-linux.org
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux

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

* Re: [parisc-linux] statfs() problem with glibc-2.5
       [not found] ` <20070212153731.846e2ad3.gmsoft@gentoo.org>
@ 2007-02-12 16:29   ` Jeff Bailey
  2007-02-12 16:48   ` Matthew Wilcox
                     ` (2 subsequent siblings)
  3 siblings, 0 replies; 8+ messages in thread
From: Jeff Bailey @ 2007-02-12 16:29 UTC (permalink / raw)
  To: Guy Martin; +Cc: parisc-linux

On 12/02/07, Guy Martin <gmsoft@gentoo.org> wrote:
> After some more troubleshooting, I've found out that parisc doesn't hook up the statfs64 syscall.
>
> Applying the attached patch and recompile glibc with updated headers makes df works again.
>
> Apparently, the statfs64 syscalls are available since 2.5.74.

Thanks,  I'll test this later.  We have this problem in Ubuntu right
now on 64 bit kernels, but I hadn't narrowed it down enough to make a
report yet. =)

-- 
Jeff Bailey - http://www.raspberryginger.com/jbailey/
_______________________________________________
parisc-linux mailing list
parisc-linux@lists.parisc-linux.org
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux

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

* Re: [parisc-linux] statfs() problem with glibc-2.5
       [not found] ` <20070212153731.846e2ad3.gmsoft@gentoo.org>
  2007-02-12 16:29   ` Jeff Bailey
@ 2007-02-12 16:48   ` Matthew Wilcox
  2007-02-17 16:06   ` Kyle McMartin
       [not found]   ` <20070217160642.GC2880@athena.road.mcmartin.ca>
  3 siblings, 0 replies; 8+ messages in thread
From: Matthew Wilcox @ 2007-02-12 16:48 UTC (permalink / raw)
  To: Guy Martin; +Cc: parisc-linux

On Mon, Feb 12, 2007 at 03:37:31PM +0100, Guy Martin wrote:
> After some more troubleshooting, I've found out that parisc doesn't hook up the statfs64 syscall.

I thought we didn't need a statfs64 syscall since it returns the same
struct as statfs on parisc (due to the struct definitions already being
big enough).  However, now that I review the definitions, I think you're
right and we should hook it up.

_______________________________________________
parisc-linux mailing list
parisc-linux@lists.parisc-linux.org
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux

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

* Re: [parisc-linux] statfs() problem with glibc-2.5
       [not found] ` <20070212153731.846e2ad3.gmsoft@gentoo.org>
  2007-02-12 16:29   ` Jeff Bailey
  2007-02-12 16:48   ` Matthew Wilcox
@ 2007-02-17 16:06   ` Kyle McMartin
       [not found]   ` <20070217160642.GC2880@athena.road.mcmartin.ca>
  3 siblings, 0 replies; 8+ messages in thread
From: Kyle McMartin @ 2007-02-17 16:06 UTC (permalink / raw)
  To: parisc-linux

You're missing Signed-off-by, and since you don't have commit access, I
cannot implicitly add it. Please resend the patch with your S-o-b line added.

> diff --git a/arch/parisc/kernel/syscall_table.S b/arch/parisc/kernel/syscall_table.S
> index 5114666..fb6788f 100644
> --- a/arch/parisc/kernel/syscall_table.S
> +++ b/arch/parisc/kernel/syscall_table.S
> @@ -403,5 +403,7 @@
>  	ENTRY_COMP(move_pages)		/* 295 */
>  	ENTRY_SAME(getcpu)
>  	ENTRY_SAME(epoll_pwait)
> +	ENTRY_COMP(statfs64)
> +	ENTRY_COMP(fstatfs64)
>  	/* Nothing yet */
>  
> diff --git a/include/asm-parisc/unistd.h b/include/asm-parisc/unistd.h
> index 7c1bb8b..4369991 100644
> --- a/include/asm-parisc/unistd.h
> +++ b/include/asm-parisc/unistd.h
> @@ -790,6 +790,8 @@
>  #define __NR_move_pages		(__NR_Linux + 295)
>  #define __NR_getcpu		(__NR_Linux + 296)
>  #define __NR_epoll_pwait	(__NR_Linux + 297)
> +#define __NR_statfs64		(__NR_Linux + 298)
> +#define __NR_fstatfs64		(__NR_Linux + 299)
>  
>  #define __NR_Linux_syscalls     298
>  

> _______________________________________________
> parisc-linux mailing list
> parisc-linux@lists.parisc-linux.org
> http://lists.parisc-linux.org/mailman/listinfo/parisc-linux
_______________________________________________
parisc-linux mailing list
parisc-linux@lists.parisc-linux.org
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux

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

* Re: [parisc-linux] statfs() problem with glibc-2.5
       [not found]     ` <119aab440702181911t32a25761t8bf1f2306376595d@mail.gmail.com>
@ 2007-02-19  3:16       ` Kyle McMartin
       [not found]       ` <20070219031627.GA28109@athena.road.mcmartin.ca>
  1 sibling, 0 replies; 8+ messages in thread
From: Kyle McMartin @ 2007-02-19  3:16 UTC (permalink / raw)
  To: Carlos O'Donell; +Cc: parisc-linux

On Sun, Feb 18, 2007 at 10:11:13PM -0500, Carlos O'Donell wrote:
> >>  #define __NR_Linux_syscalls     298
> 
> You also forgot to update the total syscall count.
> 

I fixed that one for him. ;-)
_______________________________________________
parisc-linux mailing list
parisc-linux@lists.parisc-linux.org
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux

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

* Re: [parisc-linux] statfs() problem with glibc-2.5
       [not found]       ` <20070219031627.GA28109@athena.road.mcmartin.ca>
@ 2007-02-20 17:06         ` Guy Martin
  0 siblings, 0 replies; 8+ messages in thread
From: Guy Martin @ 2007-02-20 17:06 UTC (permalink / raw)
  To: Kyle McMartin; +Cc: parisc-linux

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


Kyle,

Here is the proper patch with Signed-off-by.

Cheers,
  Guy


On Sun, 18 Feb 2007 22:16:27 -0500
Kyle McMartin <kyle@mcmartin.ca> wrote:

> On Sun, Feb 18, 2007 at 10:11:13PM -0500, Carlos O'Donell wrote:
> > >>  #define __NR_Linux_syscalls     298
> > 
> > You also forgot to update the total syscall count.
> > 
> 
> I fixed that one for him. ;-)


-- 
Guy Martin
Gentoo Linux - HPPA port lead

[-- Attachment #2: statfs-syscalls.diff --]
[-- Type: text/x-patch, Size: 1035 bytes --]

Add missing statfs64 and fstatfs64 to parisc.

Signed-off-by: Guy Martion <gmsoft@tuxicoman.be>

diff --git a/arch/parisc/kernel/syscall_table.S b/arch/parisc/kernel/syscall_table.S
index 5114666..7d665de 100644
--- a/arch/parisc/kernel/syscall_table.S
+++ b/arch/parisc/kernel/syscall_table.S
@@ -403,5 +403,7 @@
 	ENTRY_COMP(move_pages)		/* 295 */
 	ENTRY_SAME(getcpu)
 	ENTRY_SAME(epoll_pwait)
+	ENTRY_COMP(statfs64)
+	ENTRY_COMP(fstatfs64)
 	/* Nothing yet */
 
diff --git a/include/asm-parisc/unistd.h b/include/asm-parisc/unistd.h
index 7c1bb8b..5513bdf 100644
--- a/include/asm-parisc/unistd.h
+++ b/include/asm-parisc/unistd.h
@@ -790,8 +790,10 @@
 #define __NR_move_pages		(__NR_Linux + 295)
 #define __NR_getcpu		(__NR_Linux + 296)
 #define __NR_epoll_pwait	(__NR_Linux + 297)
+#define __NR_statfs64		(__NR_Linux + 298)
+#define __NR_fstatfs64		(__NR_Linux + 299)
 
-#define __NR_Linux_syscalls     298
+#define __NR_Linux_syscalls     300
 
 #define HPUX_GATEWAY_ADDR       0xC0000004
 #define LINUX_GATEWAY_ADDR      0x100

[-- Attachment #3: Type: text/plain, Size: 169 bytes --]

_______________________________________________
parisc-linux mailing list
parisc-linux@lists.parisc-linux.org
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux

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

* [parisc-linux] statfs() problem with glibc-2.5
@ 2007-02-12  9:28 Guy Martin
  0 siblings, 0 replies; 8+ messages in thread
From: Guy Martin @ 2007-02-12  9:28 UTC (permalink / raw)
  To: parisc-linux


Hi all,


While running and testing glibc-2.5, I've encountered the following problem :

hope bin # ./df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda3             276Y  276Y  539Z 100% /
sysfs                18641256972210Y 18634655137640Y 70815813734120Y  21% /sys
udev                 18641256972210Y 18634655137640Y 70815813734120Y  21% /dev
devpts               18641256972210Y 18634655137640Y 70815813734120Y  21% /dev/pts
shm                  18641256972210Y 18634655137640Y 70815813734120Y  21% /dev/shm
usbfs                18641256972210Y 18634655137640Y 70815813734120Y  21% /proc/bus/usb
playa:/usr/portage/distfiles
                     18641256972210Y 18634655137640Y 70815813734120Y  21% /usr/portage/distfiles
/dev/sdb4            18641256972210Y 18634655137640Y 70815813734120Y  21% /mnt/gentoo
/dev/sdb2            18641256972210Y 18634655137640Y 70815813734120Y  21% /mnt/gentoo/boot


Despite the fact that I whish I had that capacity, there is definately an issue.

This is using glibc-2.5, 2.6.20-pa0 and corresponding headers.


Let me know if you need more info.

Cheers,
  Guy



-- 
Guy Martin
Gentoo Linux - HPPA port lead

_______________________________________________
parisc-linux mailing list
parisc-linux@lists.parisc-linux.org
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux

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

end of thread, other threads:[~2007-02-20 17:06 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20070212102844.f045d760.gmsoft@gentoo.org>
2007-02-12 14:13 ` [parisc-linux] statfs() problem with glibc-2.5 Kyle McMartin
2007-02-12 14:37 ` Guy Martin
     [not found] ` <20070212153731.846e2ad3.gmsoft@gentoo.org>
2007-02-12 16:29   ` Jeff Bailey
2007-02-12 16:48   ` Matthew Wilcox
2007-02-17 16:06   ` Kyle McMartin
     [not found]   ` <20070217160642.GC2880@athena.road.mcmartin.ca>
     [not found]     ` <119aab440702181911t32a25761t8bf1f2306376595d@mail.gmail.com>
2007-02-19  3:16       ` Kyle McMartin
     [not found]       ` <20070219031627.GA28109@athena.road.mcmartin.ca>
2007-02-20 17:06         ` Guy Martin
2007-02-12  9:28 Guy Martin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.