Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 331072 - Provide optional JNI implementation for lstat()
Summary: Provide optional JNI implementation for lstat()
Status: RESOLVED WONTFIX
Alias: None
Product: JGit
Classification: Technology
Component: JGit (show other bugs)
Version: 0.10.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Matthias Sohn CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 331071
  Show dependency tree
 
Reported: 2010-11-24 18:01 EST by Matthias Sohn CLA
Modified: 2021-11-07 16:26 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Sohn CLA 2010-11-24 18:01:03 EST
Provide the majority of the lstat() structure up to the
Java level.  The important part about this is first that its lstat()
and not stat(), because then we read the status of a symlink itself
and not the target of the link.  The second part is being able to get
the st_mode, st_mtime and st_size fields in a single operating system
call.  If we want to be more compatibility with the C implementation
we would honor the tv_nsec for nanosecond component of the time field,
so we can get more accurate times than just milliseconds.  We might
also want to honor the st_ctime, st_dev, st_ino, st_uid and st_gid
fields that C Git stores into the index record (see DirCacheEntry's
commented out static constants).
Comment 1 Matthias Sohn CLA 2021-11-07 16:26:42 EST
this is now implemented using java 8