Problem with mktex* generated files when running latex on GCP cloud run
Norbert Preining
norbert at preining.info
Sat Jul 12 04:16:41 CEST 2025
On Sat, 12 Jul 2025, Norbert Preining wrote:
> /* Should we recurse? To see if the subdirectory is a
> leaf, check if it has two links (one for . and one for
> ..). This means that symbolic links to directories do
> not affect the leaf-ness. This is arguably wrong, but
> the only alternative I know of is to stat every entry
> in the directory, and that is unacceptably slow.
>
> The #ifdef here makes all this configurable at
> compile-time, so that if we're using VMS directories or
> some such, we can still find subdirectories, even if it
> is much slower. */
> #ifdef ST_NLINK_TRICK
> /* With SAS/C++ 6.55 on the Amiga, stat sets the st_nlink
> field to -1 for a file, or to 1 for a directory.
> Cygwin 1.7 also leaves st_nlink as 1:
> http://cygwin.com/ml/cygwin-developers/2008-04/msg00110.html
> */
> if (links != 2)
> #endif /* ST_NLINK_TRICK */
> /* All criteria are met; find subdirectories. */
> do_subdir (kpse, str_list_ptr, FN_STRING (name),
> potential_len, post);
So I found this https://www.kernel.org/doc/html/v5.8/filesystems/overlayfs.html
the values of st_ino and st_dev returned by stat(2) and the value
of d_ino returned by readdir(3) will act like on a normal filesystem
*******************
“xino”
Enabled with the mount option “xino=auto” or “xino=on”, with the module option “xino_auto=on” or with the kernel config option CONFIG_OVERLAY_FS_XINO_AUTO=y. Also implicitly enabled by using the same underlying filesystem for all layers making up the overlay.
If this feature is disabled or the underlying filesystem doesn’t have enough free bits in the inode number, then overlayfs will not be able to guarantee that the values of st_ino and st_dev returned by stat(2) and the value of d_ino returned by readdir(3) will act like on a normal filesystem. E.g. the value of st_dev may be different for two objects in the same overlay filesystem and the value of st_ino for directory objects may not be persistent and could change even while the overlay filesystem is mounted, as summarized in the Inode properties table above.
********************
Best regards
Norbert
--
DI Dr Norbert Preining https://www.preining.info
arXiv / Cornell University + IFMGA Guide + TU Wien + TeX Live
GPG: 0x860CDC13 fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13
More information about the texhax
mailing list.