Home
last modified time | relevance | path

Searched refs:volId (Results 1 – 25 of 29) sorted by relevance

12

/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/volume/src/
H A Dvolume_manager.cpp44 auto it = volumes_.Find(volId); in GetVolume()
55 LOGI("create volume %{public}s.", volId.c_str()); in CreateVolume()
57 std::shared_ptr<VolumeInfo> tmp = GetVolume(volId); in CreateVolume()
59 LOGE("volume %{public}s exist.", volId.c_str()); in CreateVolume()
64 int32_t ret = info->Create(volId, diskId, device); in CreateVolume()
69 volumes_.Insert(volId, info); in CreateVolume()
77 return volId; in CreateVolume()
82 LOGI("destroy volume %{public}s.", volId.c_str()); in DestroyVolume()
94 volumes_.Erase(volId); in DestroyVolume()
100 int32_t VolumeManager::Check(const std::string volId) in Check() argument
[all …]
H A Dvolume_info.cpp30 int32_t VolumeInfo::Create(const std::string volId, const std::string diskId, dev_t device) in Create() argument
32 id_ = volId; in Create()
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/volume/test/
H A Dvolume_manager_test.cpp155 std::string volId = "vol-2-1"; variable
181 volumeManager->DestroyVolume(volId);
199 std::string volId = "vol-2-2"; variable
226 volumeManager->DestroyVolume(volId);
244 std::string volId = "vol-2-3"; variable
269 volumeManager->Mount(volId, flags);
273 volumeManager->DestroyVolume(volId);
291 std::string volId = "vol-2-4"; variable
293 volumeManager->Mount(volId, flags);
340 std::string volId = "vol-2-5"; variable
[all …]
H A Dvolume_info_test.cpp48 std::string volId = "vol-1-1"; variable
55 volId = "vol-1-2";
76 std::string volId = "vol-1-3"; variable
101 std::string volId = "vol-1-4"; variable
126 std::string volId = "vol-1-5"; variable
183 std::string volId = "vol-1-6"; variable
214 std::string volId = "vol-1-7"; variable
245 std::string volId = "vol-1-8"; variable
301 std::string volId = "vol-1-9"; variable
337 std::string volId = "vol-1-10"; variable
[all …]
H A Dexternal_volume_info_test.cpp48 std::string volId = "vol-156-301"; variable
49 int32_t ret = vol.Create(volId, diskId, device);
69 std::string volId = "vol-156-401"; variable
70 int32_t ret = vol.Create(volId, diskId, device);
141 std::string volId = "vol-156-601"; variable
142 int32_t ret = vol.Create(volId, diskId, device);
164 std::string volId = "vol-156-701"; variable
165 int32_t ret = vol.Create(volId, diskId, device);
188 std::string volId = "vol-156-702"; variable
212 std::string volId = "vol-156-703"; variable
[all …]
H A Dprocess_test.cpp48 std::string volId = "vol-1-1"; variable
57 auto ret = mock.Create(volId, diskId, device);
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/include/volume/
H A Dvolume_manager.h34 int32_t DestroyVolume(const std::string volId);
36 int32_t Check(const std::string volId);
37 int32_t Mount(const std::string volId, uint32_t flags);
38 int32_t UMount(const std::string volId);
39 int32_t Format(const std::string volId, const std::string fsType);
40 int32_t SetVolumeDescription(const std::string volId, const std::string description);
49 std::shared_ptr<VolumeInfo> GetVolume(const std::string volId);
/ohos5.0/docs/zh-cn/release-notes/api-diff/v3.2-beta2/
H A Djs-apidiff-file-management.md10 …ger | volumeManager | partition(volId: string, fstype: string, callback: AsyncCallback\<void>): vo…
11 …os.volumeManager | volumeManager | format(volId: string, callback: AsyncCallback\<void>): void;<br…
13 …Manager | volumeManager | old :<br>format(volId: string, callback: AsyncCallback\<void>): void;<br…
14 …umeManager | old :<br>partition(volId: string, fstype: string, callback: AsyncCallback\<void>): vo…
/ohos5.0/docs/en/release-notes/api-diff/v3.2-beta2/
H A Djs-apidiff-file-management.md10 …ger | volumeManager | partition(volId: string, fstype: string, callback: AsyncCallback\<void>): vo…
11 …os.volumeManager | volumeManager | format(volId: string, callback: AsyncCallback\<void>): void;<br…
13 …Manager | volumeManager | old :<br>format(volId: string, callback: AsyncCallback\<void>): void;<br…
14 …umeManager | old :<br>partition(volId: string, fstype: string, callback: AsyncCallback\<void>): vo…
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/ipc/test/
H A Dstorage_daemon_test.cpp352 std::string volId = "vol-1-1"; variable
354 auto ret = storageDaemon_->Mount(volId, flag);
371 std::string volId = "vol-1-2"; variable
372 auto ret = storageDaemon_->UMount(volId);
389 std::string volId = "vol-1-3"; variable
390 auto ret = storageDaemon_->Check(volId);
407 std::string volId = "vol-1-4"; variable
409 auto ret = storageDaemon_->Format(volId, fsType);
445 std::string volId = "vol-1-5"; variable
447 auto ret = storageDaemon_->SetVolumeDescription(volId, des);
H A Dstorage_daemon_service_mock.h42 virtual int32_t Mount(const std::string &volId, uint32_t flags) override in Mount() argument
47 virtual int32_t UMount(const std::string &volId) override in UMount() argument
52 virtual int32_t Check(const std::string &volId) override in Check() argument
57 virtual int32_t Format(const std::string &volId, const std::string &fsType) override in Format() argument
67 …virtual int32_t SetVolumeDescription(const std::string &volId, const std::string &description) ove… in SetVolumeDescription() argument
H A Dstorage_daemon_proxy_test.cpp201 string volId = "vol-0-1"; variable
204 int32_t ret = proxy_->Mount(volId, flag);
225 string volId = "vol-0-2"; variable
227 int32_t ret = proxy_->UMount(volId);
248 string volId = "vol-0-3"; variable
250 int32_t ret = proxy_->Check(volId);
271 string volId = "vol-0-4"; variable
274 int32_t ret = proxy_->Format(volId, fsType);
319 string volId = "vol-0-1"; variable
322 int32_t ret = proxy_->SetVolumeDescription(volId, description);
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/include/ipc/
H A Distorage_daemon.h36 virtual int32_t Mount(const std::string &volId, uint32_t flags) = 0;
37 virtual int32_t UMount(const std::string &volId) = 0;
38 virtual int32_t Check(const std::string &volId) = 0;
39 virtual int32_t Format(const std::string &volId, const std::string &fsType) = 0;
41 …virtual int32_t SetVolumeDescription(const std::string &volId, const std::string &description) = 0;
H A Dstorage_daemon_proxy.h29 virtual int32_t Mount(const std::string &volId, uint32_t flags) override;
30 virtual int32_t UMount(const std::string &volId) override;
31 virtual int32_t Check(const std::string &volId) override;
32 virtual int32_t Format(const std::string &volId, const std::string &fsType) override;
34 …virtual int32_t SetVolumeDescription(const std::string &volId, const std::string &description) ove…
H A Dstorage_daemon.h40 virtual int32_t Mount(const std::string &volId, uint32_t flags) override;
41 virtual int32_t UMount(const std::string &volId) override;
42 virtual int32_t Check(const std::string &volId) override;
43 virtual int32_t Format(const std::string &volId, const std::string &fsType) override;
45 …virtual int32_t SetVolumeDescription(const std::string &volId, const std::string &description) ove…
/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/include/mock/
H A Dstorage_daemon_proxy_mock.h29 virtual int32_t Mount(const std::string &volId, uint32_t flags) override;
30 virtual int32_t UMount(const std::string &volId) override;
31 virtual int32_t Check(const std::string &volId) override;
32 virtual int32_t Format(const std::string &volId, const std::string &fsType) override;
34 …virtual int32_t SetVolumeDescription(const std::string &volId, const std::string &description) ove…
/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/mock/
H A Dstorage_daemon_proxy_mock.cpp29 int32_t StorageDaemonProxy::Mount(const std::string &volId, uint32_t flags) in Mount() argument
34 int32_t StorageDaemonProxy::UMount(const std::string &volId) in UMount() argument
39 int32_t StorageDaemonProxy::Check(const std::string &volId) in Check() argument
44 int32_t StorageDaemonProxy::Format(const std::string &volId, const std::string &fsType) in Format() argument
59 int32_t StorageDaemonProxy::SetVolumeDescription(const std::string &volId, const std::string &descr… in SetVolumeDescription() argument
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/ipc/src/
H A Dstorage_daemon_stub.cpp255 std::string volId = data.ReadString(); in HandleMount() local
258 int err = Mount(volId, flags); in HandleMount()
268 std::string volId = data.ReadString(); in HandleUMount() local
270 int err = UMount(volId); in HandleUMount()
280 std::string volId = data.ReadString(); in HandleCheck() local
282 int err = Check(volId); in HandleCheck()
292 std::string volId = data.ReadString(); in HandleFormat() local
295 int err = Format(volId, fsType); in HandleFormat()
305 std::string volId = data.ReadString(); in HandlePartition() local
308 int err = Partition(volId, type); in HandlePartition()
[all …]
H A Dstorage_daemon_proxy.cpp39 int32_t StorageDaemonProxy::Mount(const std::string &volId, uint32_t flags) in Mount() argument
48 if (!data.WriteString(volId)) { in Mount()
64 int32_t StorageDaemonProxy::UMount(const std::string &volId) in UMount() argument
73 if (!data.WriteString(volId)) { in UMount()
85 int32_t StorageDaemonProxy::Check(const std::string &volId) in Check() argument
94 if (!data.WriteString(volId)) { in Check()
106 int32_t StorageDaemonProxy::Format(const std::string &volId, const std::string &fsType) in Format() argument
115 if (!data.WriteString(volId)) { in Format()
156 int32_t StorageDaemonProxy::SetVolumeDescription(const std::string &volId, const std::string &descr… in SetVolumeDescription() argument
165 if (!data.WriteString(volId)) { in SetVolumeDescription()
H A Dstorage_manager_client.cpp118 int32_t StorageManagerClient::NotifyVolumeStateChanged(std::string volId, StorageManager::VolumeSta… in NotifyVolumeStateChanged() argument
125 storageManager_->NotifyVolumeStateChanged(volId, state); in NotifyVolumeStateChanged()
H A Dstorage_daemon.cpp85 int32_t StorageDaemon::Mount(const std::string &volId, uint32_t flags) in Mount() argument
89 int32_t ret = VolumeManager::Instance()->Mount(volId, flags); in Mount()
100 int32_t StorageDaemon::UMount(const std::string &volId) in UMount() argument
104 int32_t ret = VolumeManager::Instance()->UMount(volId); in UMount()
115 int32_t StorageDaemon::Check(const std::string &volId) in Check() argument
119 return VolumeManager::Instance()->Check(volId); in Check()
125 int32_t StorageDaemon::Format(const std::string &volId, const std::string &fsType) in Format() argument
129 int32_t ret = VolumeManager::Instance()->Format(volId, fsType); in Format()
155 int32_t StorageDaemon::SetVolumeDescription(const std::string &volId, const std::string &descriptio… in SetVolumeDescription() argument
159 int32_t ret = VolumeManager::Instance()->SetVolumeDescription(volId, description); in SetVolumeDescription()
/ohos5.0/docs/zh-cn/release-notes/api-diff/v3.2-beta1/
H A Djs-apidiff-file-management.md28 …ger | volumeManager | partition(volId: string, fstype: string, callback: AsyncCallback\<void>): vo…
29 …os.volumeManager | volumeManager | format(volId: string, callback: AsyncCallback\<void>): void;<br…
/ohos5.0/docs/en/release-notes/api-diff/v3.2-beta1/
H A Djs-apidiff-file-management.md28 …ger | volumeManager | partition(volId: string, fstype: string, callback: AsyncCallback\<void>): vo…
29 …os.volumeManager | volumeManager | format(volId: string, callback: AsyncCallback\<void>): void;<br…
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/client/test/
H A Dstorage_daemon_client_test.cpp111 std::string volId = "vol-1-1"; variable
113 int32_t ret = storageDaemonClient_->PrepareUserSpace(userid, volId, flags);
116 storageDaemonClient_->DestroyUserSpace(userid, volId, flags);
/ohos5.0/docs/zh-cn/application-dev/file-management/
H A Dmanage-external-storage.md83 let volId: string = data.parameters.id;
84 volumeManager.getVolumeById(volId, (error: BusinessError, vol: volumeManager.Volume) => {

12