Skip to content

Example for squashfs creation is not really valid #273

@ghost

Description

The examples/squashfs_create.go will not ever really be viable when doing proper error checking of returned values as it calls CreateFilesystem which will always return a filesystem.ErrReadonlyFilesystem for filesystem.TypeSquashfs.

If it is possible to properly create a writable squashfs the example should be updated to properly show how it is suggested to handle above error (I know how to check types of errors in go, I'm suggesting that the example should either note the error to check if it can be ignored in this case for creating a squashfs object)

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