Skip to content

Commit e5cff32

Browse files
committed
Fix markdown rendering
1 parent a64da1c commit e5cff32

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

UNIXFS.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,14 @@ For files comprised of a single block, the 'Type' field will be set to 'File', '
8282
UnixFS currently supports two optional metadata fields:
8383

8484
* `mode` -- The `mode` is for persisting the file permissions in [numeric notation](https://en.wikipedia.org/wiki/File_system_permissions#Numeric_notation) \[[spec](https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_stat.h.html)\].
85-
If unspecified this defaults to `0755` for directories/HAMT shards and `0644` for all other types where applicable
86-
The nine least significant bits represent `ugo-rwx`
87-
The next three least significant bits represent `setuid`, `setgid` and the `sticky bit`
88-
The remaining 20 bits are reserved for future use, and are subject to change. Spec implementations **MUST** handle bits they do not expect as follows:
89-
For future-proofing the (de)serialization layer must preserve the entre uint32 value during clone/copy operations, modifying only bit values that have a well defined meaning: `clonedValue = ( modifiedBits & 07777 ) | ( originalValue & 0xFFFFF000 )`
90-
Any higher level operations interpreting the value must proactively mask-off bits without a defined meaning in the current version of the spec: `interpretedValue = originalValue & 07777`
85+
- If unspecified this defaults to
86+
- `0755` for directories/HAMT shards
87+
- `0644` for all other types where applicable
88+
- The nine least significant bits represent `ugo-rwx`
89+
- The next three least significant bits represent `setuid`, `setgid` and the `sticky bit`
90+
- The remaining 20 bits are reserved for future use, and are subject to change. Spec implementations **MUST** handle bits they do not expect as follows:
91+
- For future-proofing the (de)serialization layer must preserve the entre uint32 value during clone/copy operations, modifying only bit values that have a well defined meaning: `clonedValue = ( modifiedBits & 07777 ) | ( originalValue & 0xFFFFF000 )`
92+
- Any higher level operations interpreting the value must proactively mask-off bits without a defined meaning in the current version of the spec: `interpretedValue = originalValue & 07777`
9193
* `mtime` -- The modification time in seconds since the epoch. This defaults to the unix epoch if unspecified
9294

9395
### Deduplication and inlining

0 commit comments

Comments
 (0)