Skip to content

Don't put blob files on /tmp #35

@dcolascione

Description

@dcolascione

blobchunk.c uses erofs_tmpfile to make a file in which to store blob data. erofs_tmpfile, unless configured otherwise, uses $TMPDIR or /tmp. Problem is $TMPDIR or /tmp can be a tmpfs, and mkfs.erofs can use a lot of temporary storage, filling up /tmp (by default sized for half of RAM) and causing various bits of mayhem throughout the system. You want to either use memfd_create to get the temporary FD or just stick your blobs in anonymous memory without going through a FD at all instead of mucking with /tmp.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions