Skip to content

Panic on empty volume name #9

Closed
@leofidus

Description

@leofidus
PS C:\Users\redacted\source\ntfs> .\target\debug\examples\ntfs_shell.exe \\.\C:
**********************************************************************
ntfs-shell - Demonstration of the ntfs Rust crate
by Colin Finck <colin@reactos.org>
**********************************************************************

Opened "\\.\C:" read-only.

ntfs-shell:\> fsinfo
Cluster Size:       4096
File Record Size:   1024
MFT Byte Position:  0xc0000000
NTFS Version:       3.1
Sector Size:        512
Serial Number:      1651328304054153915
Size:               943060998656
thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', src\structured_values\volume_name.rs:96:46
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

As you can see, I indeed don't have a name set, which is just fine with Windows (Tested on Windows 10 21H1):

image

image

On a different drive with a configured name the command succeeds.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions