Return true if S ends in a string that may be a 36-byte UUID, i.e., of the form HHHHHHHH-HHHH-HHHH-HHHH-HHHHHHHHHHHH, where each H is an upper or lower case hexadecimal digit. */
| 915 | i.e., of the form HHHHHHHH-HHHH-HHHH-HHHH-HHHHHHHHHHHH, where |
| 916 | each H is an upper or lower case hexadecimal digit. */ |
| 917 | ATTRIBUTE_PURE |
| 918 | static bool |
| 919 | has_uuid_suffix (char const *s) |
| 920 | { |
| 921 | size_t len = strlen (s); |
| 922 | return (36 < len |
| 923 | && strspn (s + len - 36, "-0123456789abcdefABCDEF") == 36); |
| 924 | } |
| 925 | |
| 926 | /* Obtain the block values BV and inode values IV |
| 927 | from the file system usage FSU. */ |