Bug 249115 - The zfs command in the installer fails to log a set command
Summary: The zfs command in the installer fails to log a set command
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-fs (Nobody)
Depends on:
Reported: 2020-09-04 19:33 UTC by Dennis Clarke
Modified: 2021-03-23 09:40 UTC (History)
1 user (show)

See Also:

image of the screen during install (14.86 KB, image/png)
2020-09-04 19:33 UTC, Dennis Clarke
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dennis Clarke 2020-09-04 19:33:01 UTC
During install of FreeBSD 13.0-CURRENT #0 c122cf32f2a-c252857 from the 
snapshots of 3 Sept 2020 I did select the option to open a shell at end
of install. Therein I use to two following commands for the zpool foo :

    # zfs set checksum=sha512 foo

    # zfs set atime=on foo

The first command works fine and does indeed set the checksum to sha512
on all datasets whereas the second command SEEMS to fail with an error
message : 

    cannot mount 'foo': Invalid argument
    property may be set but unable to remount filesystem

Then we check with :

    zfs list -o name,used,avail,atime,setuid,exec,checksum,mountpoint

where we see that indeed the atime property is set on everywhere and the
zpool history fails to log this event. The zpool history does log the 
set checksum fine. 

This only is seen during install as tests after first boot seem fine.

Dennis Clarke
UNIX and Linux spoken
Comment 1 Dennis Clarke 2020-09-04 19:33:57 UTC
Created attachment 217753 [details]
image of the screen during install

image of the screen during install
Comment 2 Steve Wills freebsd_committer 2020-09-22 14:29:22 UTC
Confirmed, I have reproduced this bug as well.
Comment 3 Andriy Gapon freebsd_committer 2020-09-22 14:56:59 UTC
(In reply to Steve Wills from comment #2)
zfs-devel@ is effectively dead, please use fs@.
Comment 4 Dennis Clarke 2021-02-05 07:56:44 UTC

I just checked with the latest ALPHA3 installer image for amd64 and the
bug is still in place. It is strange that only the first command entered
gets ignored and even returns an error to the console but the command
succeeds. The change of a property to a ZFS filesystem works as expected
but it is not logged in any way in the zpool history.  

Any command entered afterwards is logged. 

I used FreeBSD-13.0-ALPHA3-amd64-20210129-40cb0344eb2-256214-disc1.iso
as the installer disk image.
Comment 5 Dennis Clarke 2021-03-23 09:40:50 UTC
Testing with 13.0 RC3 and not able to reproduce ... yet.