manageiq-smartstate 0.2.7 → 0.2.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fs/xfs/directory.rb +10 -6
- data/lib/manageiq/smartstate/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bb3a8cbd47ea506835fe8f9945c8b2a9e3a9d567
|
4
|
+
data.tar.gz: 7551eec8bf0e551ef965d367f815b16dfbdbdf47
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a35ea5d4d2ae00b832ec7e8d6a20f5691b436014a4ffc964868481b3ff8d0417522942b80da165faf710b93f6b6484b6461c57320212ddc5ba5e661ecc71d342
|
7
|
+
data.tar.gz: 12b80f47b85ee9560d7971678bb1960d7dc3e4e29b2f88e581b33ecac80a2f11824dee9b4c0a9523cc0a7c98da74e77c5585b5a046d83d6671b9ce34e47a37b0
|
data/lib/fs/xfs/directory.rb
CHANGED
@@ -99,12 +99,14 @@ module XFS
|
|
99
99
|
data_pointer = 0
|
100
100
|
block_number = 1
|
101
101
|
last_directory_space = @sb.block_size - DirectoryEntry::SIZEOF_SMALLEST_DIRECTORY_ENTRY
|
102
|
-
if @inode_object.data_method == :extents
|
103
|
-
return glob_single_extent_entries_by_linked_list if @inode_object.in['num_extents'] == 1
|
104
|
-
end
|
105
102
|
loop do
|
106
|
-
|
107
|
-
|
103
|
+
begin
|
104
|
+
header = DirectoryDataHeader.new(@data[data_pointer..@sb.block_size * block_number], @sb)
|
105
|
+
rescue => err
|
106
|
+
$log.error("Invalid DirectoryDataHeader encountered: #{err}. Skipping.")
|
107
|
+
break
|
108
|
+
end
|
109
|
+
block_pointer = header.header_end
|
108
110
|
data_pointer += header.header_end
|
109
111
|
loop do
|
110
112
|
break if block_pointer > last_directory_space
|
@@ -122,7 +124,9 @@ module XFS
|
|
122
124
|
|
123
125
|
def glob_entries_by_linked_list
|
124
126
|
return {} if @data.nil?
|
125
|
-
if @inode_object.data_method == :extents
|
127
|
+
if @inode_object.data_method == :extents && @inode_object.in['num_extents'] == 1
|
128
|
+
return glob_single_extent_entries_by_linked_list
|
129
|
+
elsif @inode_object.data_method == :extents || @inode_object.data_method == :btree
|
126
130
|
return glob_extent_or_btree_entries_by_linked_list
|
127
131
|
elsif @inode_object.data_method == :local
|
128
132
|
return glob_short_form_entries_by_linked_list
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: manageiq-smartstate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ManageIQ Developers
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-02-
|
11
|
+
date: 2018-02-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: azure-armrest
|