Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/sbin/gpt



Module Name:    src
Committed By:   kre
Date:           Fri Feb  6 09:43:31 UTC 2026

Modified Files:
        src/sbin/gpt: gpt.c

Log Message:
Allow operating on empty files if -m is given.

Also, if the named file doesn't exist, create it,
again if -m is given (-m is almost never needed with
devices, the media size for them is generally obtained
from the device itself, so the risk of accidentally
creating /dev/rds2 is small...)

This allows

        gpt -m whatever-size create /tmp/TEST

to simply work, unless /tmp/TEST already exists and contains data.

After that, any other gpt commands can be applied (without -m being
needed).


To generate a diff of this commit:
cvs rdiff -u -r1.96 -r1.97 src/sbin/gpt/gpt.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index