Rui Qi Sim would like Owners Override and James Sullivan to review this change.
[vfs][rust] Return EntryInfo for Node and DirectoryEntry
Introduce a new trait `GetEntryInfo` that all implementations of
`DirectoryEntry` (used in pseudo filesystems) and `Node` must
implement. This trait only has one method that returns `EntryInfo`.
Prior to this change, there is a method to get `EntryInfo` but it was
a part of only `DirectoryEntry`. Being able to get the entry's
information, regardless of if it is used in a pseudo filesystem, is
still useful. For example, in Open3, we want to identify the directory
entry type to validate protocols when there are more than one specified.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
if must_be_directory && !(dirent_type == fio::DirentType::Directory) {
Rui Qi SimSame elsewhere.
```suggestion
if must_be_directory && dirent_type != fio::DirentType::Directory {
```
Done
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Owners-Override | +1 |
Please get a +2 from someone on the local storage team before landing.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Code-Review | +2 |
/// Node and DirectoryEntry implement this trait to give useful information about the entry, for
This doesn't seem accurate. They don't implement it. They include it as a supertrait. I don't think you need to mention this though.
/// directory. If you don't need to add your nodes to a pseudo directory, consider implementing
/// node::IsDirectory instead.
Needs updating (probably just remove the sentence). Please can you do a quick grep for IsDirectory and make sure there aren't any more stray comments like this.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
/// Node and DirectoryEntry implement this trait to give useful information about the entry, for
This doesn't seem accurate. They don't implement it. They include it as a supertrait. I don't think you need to mention this though.
Thanks for pointing that out! I've updated it now.
/// directory. If you don't need to add your nodes to a pseudo directory, consider implementing
/// node::IsDirectory instead.
Needs updating (probably just remove the sentence). Please can you do a quick grep for IsDirectory and make sure there aren't any more stray comments like this.
Done. Also did a quick grep of IsDirectory like you suggested and didn't pick up anything else.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Please get a +2 from someone on the local storage team before landing.
Sorry, I didn't realise the "owners-override" will be reset with a new patchset. Since this is such a large CL, I'd like to get two people on the storage team to look at it. Could the override be held off until I get another +2 from someone else on the team?
Rui Qi SimPlease get a +2 from someone on the local storage team before landing.
Sorry, I didn't realise the "owners-override" will be reset with a new patchset. Since this is such a large CL, I'd like to get two people on the storage team to look at it. Could the override be held off until I get another +2 from someone else on the team?
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Code-Review | +1 |
Rui Qi SimPlease get a +2 from someone on the local storage team before landing.
Adam BarthSorry, I didn't realise the "owners-override" will be reset with a new patchset. Since this is such a large CL, I'd like to get two people on the storage team to look at it. Could the override be held off until I get another +2 from someone else on the team?
Sure, just ping me when you're ready.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Code-Review | +1 |
Commit-Queue | +2 |
Rui Qi SimPlease get a +2 from someone on the local storage team before landing.
Adam BarthSorry, I didn't realise the "owners-override" will be reset with a new patchset. Since this is such a large CL, I'd like to get two people on the storage team to look at it. Could the override be held off until I get another +2 from someone else on the team?
Brandon CastellanoSure, just ping me when you're ready.
Should be ready now, thanks Adam!
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
[vfs][rust] Return EntryInfo for Node and DirectoryEntry
Introduce a new trait `GetEntryInfo` that all implementations of
`DirectoryEntry` (used in pseudo filesystems) and `Node` must
implement. This trait only has one method that returns `EntryInfo`.
Prior to this change, there is a method to get `EntryInfo` but it was
a part of only `DirectoryEntry`. Being able to get the entry's
information, regardless of if it is used in a pseudo filesystem, is
still useful. For example, in Open3, we want to identify the directory
entry type to validate protocols when there are more than one specified.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Change has been successfully rolled: http://go/roll-cl/4edaf8bf2c7972b78a471f47af2e4b5b89cfc22c
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |