commit | 48d1c39da7663561b54d8244e2b967fc984d41ea | [log] [tgz] |
---|---|---|
author | David Anderson <dvander@google.com> | Wed Jul 05 13:35:12 2023 -0700 |
committer | David Anderson <dvander@google.com> | Thu Aug 03 16:24:26 2023 -0700 |
tree | bd5a22c15ce9b98ae12a35cd237f16282e045d13 | |
parent | 95f46b07580e484d8c7b091c162e1fc6322b6957 [diff] |
snapuserd: Move GetNumSectors call to snapuserd_server. Calling this in snapuserd_core fails when the base path is a regular file. Since the value is only read once, just call it from snapuserd_server instead, which also means we don't have to add an S_ISBLK check here. Bug: 288273605 Test: snapuserd_test Change-Id: Ic26bf807b24611f2d97829d1b4eb1d0ede2feb6a