[OpenAFS] Having issues with writing to afs via Java process.

Jeffrey Altman jaltman@secure-endpoints.com
Mon, 12 Sep 2005 19:49:40 -0400


This is a cryptographically signed message in MIME format.

--------------ms030608030401040208070300
Content-Type: multipart/mixed;
 boundary="------------020406020707060207020005"

This is a multi-part message in MIME format.
--------------020406020707060207020005
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

I have not tried to build the Java API as part of 1.4.   If you are
interested in this code
I suggest you try to build it and report your experience to
openafs-devel.   We will try
to help you if you have problems.

Jeffrey Altman




Pucky Loucks wrote:

> So Jeffrey, am I to understand that the JAVA API is so old that it 
> probably won't work with the latest code?  The reason I ask is that I 
> do need a system that creates volumes and replicates/releases and 
> this is one of the main reasons i was looking at the API.
>
> I'm not against get into it from a code point of view (i.e. dev/
> testing)... maybe I should post this on the devel list.
>
> Pucky
> On 12-Sep-05, at 3:45 PM, Jeffrey Altman wrote:
>
>> You should authenticate your session using kinit.exe and aklog.exe OR
>> klog.exe prior to starting your Java application.
>>
>> I'm not sure but I don't think that there is a Java Kerberos 5 based
>> version of aklog.
>>
>> Jeffrey Altman
>>
>>
>> Pucky Loucks wrote:
>>
>>
>>> thanks for the quick reply Jeffrey,
>>>
>>> I guess I'm confused about authentication.  i.e. my understanding is
>>> that I won't be able to write unless I've been authorized by  kaserver.
>>>
>>> also the java doc for the afs java api made reference to using the
>>> FileOutputStream for writing an output stream to an afs file, but  
>>> know
>>> that you say that maybe it was referring to an afs file i.e.  
>>> *****.vol.
>>>
>>> so that said, I guess I just have to figure out the proper ACL for
>>> allowing write access to the filesystem.
>>>
>>> does that sound about right?
>>>
>>> Thanks again,
>>>
>>> Pucky
>>>
>>>
>>> On 12-Sep-05, at 3:31 PM, Jeffrey Altman wrote:
>>>
>>>
>>>> You don't use the Java AFS classes to write to AFS.   You use the 
>>>> Java
>>>> AFS classes to administer AFS.
>>>>
>>>> To write to AFS simply use the standard input/output classes.
>>>>
>>>> Jeffrey Altman
>>>>
>>>>
>>>> Pucky Loucks wrote:
>>>>
>>>>
>>>>> Hi everyone, I've got an application that will writes files to a 
>>>>> file
>>>>> system (which I'm trying to move to afs) and I'm having issues
>>>>> understanding how I'm going to be able to do that.
>>>>>
>>>>> a few question I hope someone can answer.
>>>>>
>>>>> 1) is the JAVA Api no logger supported?  in the notes it refers to
>>>>> version 1.2.4 (I'm having major issue compling the jafs.jar with  the
>>>>> shared libraries)
>>>>>
>>>>> 2) is there another way to write to the afs filesystem without  using
>>>>> this api?
>>>>>
>>>>>
>>>>> Thanks,
>>>>>
>>>>> Pucky Loucks
>>>>> _______________________________________________
>>>>> OpenAFS-info mailing list
>>>>> OpenAFS-info@openafs.org
>>>>> https://lists.openafs.org/mailman/listinfo/openafs-info
>>>>>
>>>>> <jaltman.vcf>
>>>>>
>>>>
>>>>
>>>>
>>>
>>> _______________________________________________
>>> OpenAFS-info mailing list
>>> OpenAFS-info@openafs.org
>>> https://lists.openafs.org/mailman/listinfo/openafs-info
>>>
>>> <jaltman.vcf>
>>
>>
>
>
>


--------------020406020707060207020005
Content-Type: text/x-vcard; charset=utf-8;
 name="jaltman.vcf"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="jaltman.vcf"

begin:vcard
fn:Jeffrey Altman
n:Altman;Jeffrey
org:Secure Endpoints Inc.
adr:;;255 W 94TH ST PHB;NEW YORK;NY;10025;United States
email;internet:jaltman@secure-endpoints.com
title:President
tel;work:+1 212 769-9018
x-mozilla-html:TRUE
url:http://www.secure-endpoints.com
version:2.1
end:vcard


--------------020406020707060207020005--

--------------ms030608030401040208070300
Content-Type: application/x-pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIJXzCC
AwowggJzoAMCAQICAw7NrTANBgkqhkiG9w0BAQQFADBiMQswCQYDVQQGE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