Print this page
4185 New hash algorithm support

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libzfs/common/libzfs_dataset.c
          +++ new/usr/src/lib/libzfs/common/libzfs_dataset.c
↓ open down ↓ 1369 lines elided ↑ open up ↑
1370 1370                      "property or value"));
1371 1371                  (void) zfs_error(hdl, EZFS_BADVERSION, errbuf);
1372 1372                  break;
1373 1373  
1374 1374          case ERANGE:
1375 1375                  if (prop == ZFS_PROP_COMPRESSION) {
1376 1376                          (void) zfs_error_aux(hdl, dgettext(TEXT_DOMAIN,
1377 1377                              "property setting is not allowed on "
1378 1378                              "bootable datasets"));
1379 1379                          (void) zfs_error(hdl, EZFS_NOTSUP, errbuf);
     1380 +                } else if (prop == ZFS_PROP_CHECKSUM ||
     1381 +                    prop == ZFS_PROP_DEDUP) {
     1382 +                        (void) zfs_error_aux(hdl, dgettext(TEXT_DOMAIN,
     1383 +                            "property setting is not allowed on "
     1384 +                            "root pools"));
     1385 +                        (void) zfs_error(hdl, EZFS_NOTSUP, errbuf);
1380 1386                  } else {
1381 1387                          (void) zfs_standard_error(hdl, err, errbuf);
1382 1388                  }
1383 1389                  break;
1384 1390  
1385 1391          case EINVAL:
1386 1392                  if (prop == ZPROP_INVAL) {
1387 1393                          (void) zfs_error(hdl, EZFS_BADPROP, errbuf);
1388 1394                  } else {
1389 1395                          (void) zfs_standard_error(hdl, err, errbuf);
↓ open down ↓ 3114 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX