Repository navigation
Commit ea4feef
committed
uapi16: fill in nothing from more than MAX_CONTENTS contents objects
A reader refuses the record of a file object with more than
MAX_CONTENTS contents objects:
manifest object 1: more than 256 contents entries
and so does a writer. But set_contents() still fills in from them: 257
contents objects with the file "a" and the original size 5 give each of
them the encoded size 5 and the object the size 5, all marked as filled
in. With 256 of them a reader takes the record, and set_contents() gives
the object the reader reads.
Nothing follows from contents objects a reader doesn't take. So with
more than MAX_CONTENTS of them set_contents() fills in nothing at all,
neither for the object nor for any of them, and doesn't check them
either.
Of the 3168800 file objects of the sweep, 4000 have 256 or 257 contents
objects. Before this change 42 of them didn't agree with a reader. Now
none of the file objects of the sweep disagrees, and where a reader
takes the record nothing changes.
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>1 parent 609eff3 commit ea4feef
2 files changed
Lines changed: 34 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
471 | 471 | | |
472 | 472 | | |
473 | 473 | | |
474 | | - | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
475 | 477 | | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
476 | 483 | | |
477 | 484 | | |
478 | 485 | | |
| |||
3146 | 3153 | | |
3147 | 3154 | | |
3148 | 3155 | | |
| 3156 | + | |
| 3157 | + | |
| 3158 | + | |
| 3159 | + | |
| 3160 | + | |
| 3161 | + | |
| 3162 | + | |
| 3163 | + | |
| 3164 | + | |
| 3165 | + | |
| 3166 | + | |
| 3167 | + | |
| 3168 | + | |
| 3169 | + | |
| 3170 | + | |
| 3171 | + | |
| 3172 | + | |
| 3173 | + | |
| 3174 | + | |
| 3175 | + | |
| 3176 | + | |
| 3177 | + | |
| 3178 | + | |
| 3179 | + | |
3149 | 3180 | | |
3150 | 3181 | | |
3151 | 3182 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1826 | 1826 | | |
1827 | 1827 | | |
1828 | 1828 | | |
1829 | | - | |
| 1829 | + | |
| 1830 | + | |
1830 | 1831 | | |
1831 | 1832 | | |
1832 | 1833 | | |
| |||
0 commit comments