RFR: 8229872: (fs) Increase buffer size used with getmntent

Florian Weimer fweimer at redhat.com
Mon Aug 19 13:18:01 UTC 2019


* Vladimir Kempik:

> Maybe it can  be done it this way:
>
> in jni’s Java_sun_nio_fs_LinuxNativeDispatcher_setmntent0
>
>  go thru file line by line ( with getline) and find longest line, then rewind to file begin.

Interesting idea.  It still has a small race condition.  But it might be
the best compromise between amount of changes required and gains in
robustness.

Thanks,
Florian


More information about the nio-dev mailing list