[ 
https://issues.apache.org/jira/browse/PDFBOX-5472?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17562265#comment-17562265
 ] 

Andreas Lehmkühler commented on PDFBOX-5472:
--------------------------------------------

As Tilman already said PDFBox doesn't do any file magic, it simply uses the 
given file, opens a FileInputStream  and writes to it. That's it. 

I'm neither a link expert but using unix for a couple of decades. The link 
count is relevant for hard links only, soft links aren't affected. PDFBox 
doesn't create either of them. Is your production server running in a cloud 
environment or some kind of container? Maybe some sort of virtual fielsystems 
comes in place and produces such 0 based link counts? This is just a wild guess 
of mine.

> PDDocument save(File) is used to create file in unix. But file is being 
> created with link count as 0
> ----------------------------------------------------------------------------------------------------
>
>                 Key: PDFBOX-5472
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-5472
>             Project: PDFBox
>          Issue Type: Bug
>            Reporter: Abhishek
>            Priority: Major
>
> PDDocument save(File) is used to create file in unix.
> But file is being created with link count as 0.
> This method is being called in a loop, to create > 10 files at a time. But we 
> notices that first or first two files are always being created with 0 link 
> count in unix file system.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to