xfs
[Top] [All Lists]

Fwd: Re: SYSCALLS for Posix-ACL's in 2.4.5 and later

To: Linux XFS Mailing List <linux-xfs@xxxxxxxxxxx>
Subject: Fwd: Re: SYSCALLS for Posix-ACL's in 2.4.5 and later
From: Smoki <smoki@xxxxxxxxxxxxxxxx>
Date: Tue, 14 Aug 2001 18:40:50 +0200
Cc: "Martin Schwidefsky" <schwidefsky@xxxxxxxxxx>
Sender: owner-linux-xfs@xxxxxxxxxxx
Hello again,

i have asked the IBM S/390 maintainer to reserve three SYSCALLS for s390 in 
the kernel, and have got 222, 223 and 224 as Syscall for 31-bit 
(arch/s390/kernel/entry.S) and 64-bit (arch/s390x/kernel/entry.S).

The diff now look like this (for arch/s390/kernel/entry.S):

diff -u entry.S.org  entry.S
--- entry.S.org         Tue Aug 14 18:10:16 2001
+++ entry.S     Tue Aug 14 18:19:47 2001
@@ -574,9 +574,9 @@
         .long  sys_madvise
        .long  sys_getdents64            /* 220 */
         .long  sys_fcntl64 
-        .long  sys_ni_syscall            /* 222 - reserved for posix_acl */
-        .long  sys_ni_syscall            /* 223 - reserved for posix_acl */
-        .long  sys_ni_syscall            /* 224 - reserved for posix_acl */
+        .long  sys_attrctl               /* 222 - reserved for posix_acl */
+        .long  sys_acl_get               /* 223 - reserved for posix_acl */
+        .long  sys_acl_set               /* 224 - reserved for posix_acl */
        .rept  255-224
        .long  sys_ni_syscall
        .endr

The ACL on my System work with this changes, what diff have to used for 
64-bit tree i am not sure (but propably similar...), i dont have access to a 
64bit machine :-/

In the File "acl/acl.h" have following #defines to be added:

+#define HAVE_ACL_SYSCALL 1     
+#  ifndef SYS__acl_get
+#    define SYS__acl_get        223
+#  endif
+#  ifndef SYS__acl_set
+#    define SYS__acl_set        224
+#  endif

I hope with this changes will help XFS get a step further to run on s/390 
enviroment. I will work on, to get xfs run more stable on my system, becouse 
i have some strange problems already, hope i will find and solve them.

Sincerly,

Christian Mueller

----------  Weitergeleitete Nachricht  ----------
Subject: Re: SYSCALLS for Posix-ACL's in 2.4.5 and later
Date: Tue, 14 Aug 2001 09:57:28 +0200
From: "Martin Schwidefsky" <schwidefsky@xxxxxxxxxx>
To: "Christian Mueller" <smoki@xxxxxxxxxxxxx>


Hallo Herr Mueller,
die Leute von der XFS Mailing Liste haben Sie in die richtige Richtung
verwiesen. Ich habe gerade die drei Systemaufrufe 222, 223 und 224 für
ACL reserviert. Die zwei relevanten Stellen sehen jetzt so aus:

Index: entry.S
===================================================================
RCS file: /home/cvs/linux-2.3/arch/s390/kernel/entry.S,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -r1.41 -r1.42
--- entry.S    2001/07/27 11:36:47 1.41
+++ entry.S    2001/08/14 07:56:57 1.42
@@ -559,7 +559,10 @@
         .long  sys_madvise
     .long  sys_getdents64          /* 220 */
         .long  sys_fcntl64
-    .rept  255-221
+    .long  sys_ni_syscall          /* 222 - reserved for posix_acl */
+    .long  sys_ni_syscall          /* 223 - reserved for posix_acl */
+    .long  sys_ni_syscall          /* 224 - reserved for posix_acl */
+    .rept  255-224
     .long  sys_ni_syscall
     .endr

Index: entry.S
===================================================================
RCS file: /home/cvs/linux-2.3/arch/s390x/kernel/entry.S,v
retrieving revision 1.53
retrieving revision 1.54
diff -u -r1.53 -r1.54
--- entry.S    2001/07/26 15:15:20 1.53
+++ entry.S    2001/08/14 07:57:01 1.54
@@ -594,7 +594,10 @@
         .long  SYSCALL(sys_madvise,sys32_madvise_wrapper)
     .long  SYSCALL(sys_getdents64,sys32_getdents64_wrapper)/* 220 */
     .long  SYSCALL(sys_ni_syscall,sys32_fcntl64_wrapper)
-        .rept  255-221
+    .long  SYSCALL(sys_ni_syscall,sys_ni_syscall) /* 222 - reserved for 
posix_acl */ 
+    .long  SYSCALL(sys_ni_syscall,sys_ni_syscall) /* 223 -
 reserved for posix_acl */ 
+    .long  SYSCALL/sys_ni_syscall,sys_ni_syscall) /* 224 - reserved for 
posix_acl */ 
+        .rept  255-224
     .long  SYSCALL(sys_ni_syscall,sys_ni_syscall)
     .endr

Brauchen Sie einen ähnlichen Patch für 2.2 ?

blue skies,
   Martin

Linux/390 Design & Development, IBM Deutschland Entwicklung GmbH
Schönaicherstr. 220, D-71032 Böblingen, Telefon: 49 - (0)7031 - 16-2247
E-Mail: schwidefsky@xxxxxxxxxx



"Christian Mueller" <smoki@xxxxxxxxxxxxx>@twain.franken.de> on 13.08.2001
21:51:55

Please respond to "Christian Mueller" <smoki@xxxxxxxxxxxxx>

Sent by:  Smoki <smoki@xxxxxxxxxxxxxxxx>


To:   Martin Schwidefsky/Germany/IBM@IBMDE
cc:
Subject:  SYSCALLS for Posix-ACL's in 2.4.5 and later



Hello Mr. Schwidefsky,

the people from the Mailing-List for the XFS development have told me, i
should ask the maintainer of s/390 to ask for 3 syscalls, to get support
posix_acl support for s/390 enviroment. I hope you are the right person. :
-)

To make it short, the support of posix acl needs 3 syscalls, i have used
the
following in my enviroment ("arch/s390/kernel/entry.S"):

        .long  sys_getdents64            /* 220 */
        .long  sys_fcntl64
+       .long  sys_attrctl               /* 222 - Attrctrl */
+       .long  sys_acl_get               /* 223 - ACL Syscall for get */
+       .long  sys_acl_set               /* 224 - ACL Syscall for set */
-       .rept  255-221
        .rept  255-224
        .long  sys_ni_syscall
        .endr

Could i reserve this 3 numbers for s/390 or can you give me some other
numbers for syscall, to get posix_acl offical supported by linux/390. Posix
ACL works fine on my s/390, if you have any question, tell me (may be in
german, too) :-)

By the way, do you know, if there is a someone working on JFS to use posix
ACL's too?

Good bye, and i hope i will hear from u soon, what syscall-numbers used for
the posix-acl :)

Christian Mueller

-------------------------------------------------------


<Prev in Thread] Current Thread [Next in Thread>
  • Fwd: Re: SYSCALLS for Posix-ACL's in 2.4.5 and later, Smoki <=