reset nlinks as well since /dev was changing due to serial adapter hotplug

This commit is contained in:
Trammell Hudson 2016-08-16 09:13:09 -04:00
parent 21268a4bb8
commit ed409cabbf
Failed to extract signature

View File

@ -7,6 +7,7 @@
# File timestamp is set to 1970-01-01T00:00:00 # File timestamp is set to 1970-01-01T00:00:00
# uid/gid are set to root # uid/gid are set to root
# check field is zeroed # check field is zeroed
# nlinks is set to zero, since the filesystem manages it
# #
use warnings; use warnings;
use strict; use strict;
@ -114,6 +115,9 @@ for my $filename (sort keys %entries)
substr($entry, 6 + 16, 8) = $zero; substr($entry, 6 + 16, 8) = $zero;
substr($entry, 6 + 24, 8) = $zero; substr($entry, 6 + 24, 8) = $zero;
# zero out the nlinks, since it is managed by the real fs
substr($entry, 6 + 32, 8) = $zero;
# set check to zero # set check to zero
substr($entry, 6 + 96, 8) = $zero; substr($entry, 6 + 96, 8) = $zero;