]> git.proxmox.com Git - mirror_spl-debian.git/commitdiff
Minor typo correction and comment updates.
authorDarik Horn <dajhorn@vanadac.com>
Fri, 21 Oct 2011 22:21:25 +0000 (17:21 -0500)
committerDarik Horn <dajhorn@vanadac.com>
Fri, 21 Oct 2011 22:21:25 +0000 (17:21 -0500)
debian/spl.postinst

index 3299fdab85e3a60477c962447fc37d07f7cd2910..ecbc4cc4799303374cd70af3e28f2af5e55114f8 100644 (file)
@@ -1,8 +1,8 @@
 #!/bin/sh -e
 
 # The hostname and hostid of the last system to access a ZFS pool are stored in
-# the ZFS pool itself.  A pool is foreign if, during `zfs import`, the current
-# hostname and hostid are different than the stored values thereof.
+# the ZFS pool itself.  A pool is foreign if, during `zpool import`, the
+# current hostname and hostid are different than the stored values thereof.
 #
 # The hostname and hostid on Solaris are intrinsic, but they are not on Linux,
 # so the spl kernel module invokes /bin/hostname and /usr/bin/hostid from the
@@ -38,9 +38,11 @@ fi
 HOSTID=$(hostid)
 
 # @TODO: Check whether this method is appropriate for gethostid(2) on big
-# endian systems.  The /etc/hostname file on i386 and amd64 systems must be
-# a little endian integer of exacly four bytes.  Regardless, a consistent
-# hostid is more important than a correct byte order here.
+# endian systems. (Update: It isn't.)
+#
+# The /etc/hostname file on i386 and amd64 systems must be a little endian
+# integer of exacly four bytes.  Regardless, a consistent hostid is more
+# important than a correct byte order here.
 
 # Conveniences like a ${HOSTID:$ii:2} substring range or a `sed` one-liner
 # are prohibited here because this file must be dash-compatible by policy.
@@ -53,4 +55,5 @@ DD=$(echo $HOSTID | cut -b 7,8)
 "$(which printf)" "\x$DD\x$CC\x$BB\x$AA" >"/etc/hostid"
 
 # @ASSERT: [ "$HOSTID" = "$(hostid)" ]
+
 #DEBHELPER#