You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
677 B
Plaintext
40 lines
677 B
Plaintext
@startuml
|
|
autonumber
|
|
hide footbox
|
|
|
|
footer "LTDFS | Ruakij"
|
|
|
|
title "Allocate space for opened file"
|
|
|
|
participant Client
|
|
control SiteA
|
|
boundary SiteB
|
|
boundary "Other Sites" as Others
|
|
|
|
Client -> SiteA ++ : fallocate
|
|
SiteA -> SiteA : Check owner
|
|
alt SiteA is owner
|
|
|
|
SiteA -> SiteA : Allocate space
|
|
alt No space left
|
|
|
|
SiteA --> Client : No space left\non device
|
|
|
|
end
|
|
|
|
SiteA ->> Others : Section changed
|
|
|
|
else SiteB is owner
|
|
|
|
SiteA -> SiteB ++ : Allocate space
|
|
|
|
SiteB -> SiteB : Allocate space
|
|
SiteB ->> Others : Section changed
|
|
SiteB --> SiteA -- : Done
|
|
|
|
SiteA ->> SiteA : Update cache
|
|
|
|
end
|
|
SiteA --> Client -- : Done
|
|
|
|
@enduml |