git: sbin/newfs_hammer2: Check S_ISREG()

Tomohiro Kusumi tkusumi at
Thu Oct 12 13:49:17 PDT 2017

commit d6cfa63feddb7be6edb1d190c41e1729e54d244e
Author: Tomohiro Kusumi <kusumi.tomohiro at>
Date:   Thu Oct 12 22:48:11 2017 +0300

    sbin/newfs_hammer2: Check S_ISREG()
    The comment says as follows, so check S_ISREG().
    /* Allow the formatting of regular files as HAMMER2 volumes */
    This is also what the same function in HAMMER1 does.

Summary of changes:
 sbin/newfs_hammer2/newfs_hammer2.c | 2 ++
 1 file changed, 2 insertions(+)

DragonFly BSD source repository

More information about the Commits mailing list