Pure Erlang implementation of 9p2000 protocol
filesystem fs 9p2000 erlang 9p
9
fork

Configure Feed

Select the types of activity you want to include in your feed.

Properly encode directory mode

While QID already contains that information, it is required to also
store it in `mode` field for some reason. Linux `v9fs` driver requires
that flag to be set, so we set it.

+5 -1
+5 -1
src/e9p_msg.erl
··· 308 308 gid => ~"", 309 309 muid => ~"" 310 310 }, Stat), 311 + FullMode = case e9p:is_type(QID, directory) of 312 + true -> 16#80000000 bor Mode; 313 + false -> Mode 314 + end, 311 315 Encoded = [<< 312 316 Type:2/?int, 313 317 Dev:4/?int 314 318 >>, 315 319 qid_to_binary(QID), 316 - <<Mode:4/?int>>, 320 + <<FullMode:4/?int>>, 317 321 time_to_encoded_sec(Atime), 318 322 time_to_encoded_sec(Mtime), 319 323 <<Len:8/?int>>,