blob: 6f746431ac8271573c580e31861ebe34f9c23d10 [file] [log] [blame]
Zbigniew Kurzynski9f2c7e22020-02-20 19:00:42 +01001description: >
Patrick Williamsa1347412022-12-06 10:56:22 -06002 This interface provides methods for mounting and unmounting images
3 using the legacy mode.
Zbigniew Kurzynski9f2c7e22020-02-20 19:00:42 +01004
5methods:
6 - name: Mount
Patrick Williamsa1347412022-12-06 10:56:22 -06007 description:
8 Perform an asynchronous operation of mounting to HOST on given object.
Zbigniew Kurzynski9f2c7e22020-02-20 19:00:42 +01009 parameters:
Patrick Williams8da396c2022-03-14 14:21:02 -050010 - name: ImageURL
11 type: string
12 description: >
Patrick Williamsa1347412022-12-06 10:56:22 -060013 Url to image. It should start with either `smb://` or `https://`
14 prefix
Patrick Williams8da396c2022-03-14 14:21:02 -050015 - name: ReadWrite
16 type: boolean
17 description: False if the image should be read-only.
18 - name: FileDescriptor
19 type: variant[int32,unixfd]
20 description: >
21 File descriptor of named pipe used for passing null-delimited
22 secret data (username and password). When there is no data to
23 pass `-1` should be passed as `INT`.
Zbigniew Kurzynski9f2c7e22020-02-20 19:00:42 +010024 returns:
Patrick Williams8da396c2022-03-14 14:21:02 -050025 - name: Status
26 type: boolean
27 description: mounting status. True on success.
Zbigniew Kurzynski9f2c7e22020-02-20 19:00:42 +010028 errors:
Patrick Williams8da396c2022-03-14 14:21:02 -050029 - xyz.openbmc_project.Common.Error.InternalFailure
Zbigniew Kurzynski9f2c7e22020-02-20 19:00:42 +010030
31 - name: Unmount
Patrick Williamsa1347412022-12-06 10:56:22 -060032 description:
33 Perform an asynchronous operation of unmounting from HOST on given
34 object.
Zbigniew Kurzynski9f2c7e22020-02-20 19:00:42 +010035 returns:
Patrick Williams8da396c2022-03-14 14:21:02 -050036 - name: Status
37 type: boolean
38 description: the unmount status. True on success.
Zbigniew Kurzynski9f2c7e22020-02-20 19:00:42 +010039 errors:
Patrick Williams8da396c2022-03-14 14:21:02 -050040 - xyz.openbmc_project.Common.Error.InternalFailure
Przemyslaw Czarnowski9ad0a7d2022-04-29 12:51:52 +020041
42signals:
43 - name: Completion
44 description: >
Patrick Williamsa1347412022-12-06 10:56:22 -060045 Signal indicating completion of mount or unmount action.
Przemyslaw Czarnowski9ad0a7d2022-04-29 12:51:52 +020046 properties:
Patrick Williamsa1347412022-12-06 10:56:22 -060047 - name: Result
48 type: int32
49 description: >
50 Returns 0 for success or errno on failure after background
51 operation completes.