@girs/guestfs-1.0 4.2.0 → 4.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/guestfs-1.0.d.ts CHANGED
@@ -4770,6 +4770,7 @@ export namespace Guestfs {
4770
4770
  * See also `guestfs_session_feature_available()`.
4771
4771
  * @param dir
4772
4772
  * @returns true on success, false on error
4773
+ * @since 1.19.63
4773
4774
  */
4774
4775
  acl_delete_def_file(dir: string): boolean;
4775
4776
 
@@ -4794,6 +4795,7 @@ export namespace Guestfs {
4794
4795
  * @param path
4795
4796
  * @param acltype
4796
4797
  * @returns the returned string, or NULL on error
4798
+ * @since 1.19.63
4797
4799
  */
4798
4800
  acl_get_file(path: string, acltype: string): string;
4799
4801
 
@@ -4836,6 +4838,7 @@ export namespace Guestfs {
4836
4838
  * @param acltype
4837
4839
  * @param acl
4838
4840
  * @returns true on success, false on error
4841
+ * @since 1.19.63
4839
4842
  */
4840
4843
  acl_set_file(path: string, acltype: string, acl: string): boolean;
4841
4844
 
@@ -4848,6 +4851,8 @@ export namespace Guestfs {
4848
4851
  * `guestfs_session_add_drive_ro()`.
4849
4852
  * @param filename
4850
4853
  * @returns true on success, false on error
4854
+ * @since 0.3
4855
+ * @deprecated In new code, use `guestfs_session_add_drive_ro()` instead
4851
4856
  */
4852
4857
  add_cdrom(filename: string): boolean;
4853
4858
 
@@ -4931,6 +4936,7 @@ export namespace Guestfs {
4931
4936
  * @param dom
4932
4937
  * @param optargs a GuestfsAddDomain containing optional arguments
4933
4938
  * @returns the returned value, or -1 on error
4939
+ * @since 1.7.4
4934
4940
  */
4935
4941
  add_domain(dom: string, optargs: AddDomain | null): number;
4936
4942
 
@@ -5165,6 +5171,7 @@ export namespace Guestfs {
5165
5171
  * @param filename
5166
5172
  * @param optargs a GuestfsAddDrive containing optional arguments
5167
5173
  * @returns true on success, false on error
5174
+ * @since 0.3
5168
5175
  */
5169
5176
  add_drive(filename: string, optargs: AddDrive | null): boolean;
5170
5177
 
@@ -5177,6 +5184,7 @@ export namespace Guestfs {
5177
5184
  * read-only, with the format being detected automatically.
5178
5185
  * @param filename
5179
5186
  * @returns true on success, false on error
5187
+ * @since 1.0.38
5180
5188
  */
5181
5189
  add_drive_ro(filename: string): boolean;
5182
5190
 
@@ -5188,6 +5196,8 @@ export namespace Guestfs {
5188
5196
  * @param filename
5189
5197
  * @param iface
5190
5198
  * @returns true on success, false on error
5199
+ * @since 1.0.84
5200
+ * @deprecated In new code, use `guestfs_session_add_drive()` instead
5191
5201
  */
5192
5202
  add_drive_ro_with_if(filename: string, iface: string): boolean;
5193
5203
 
@@ -5204,6 +5214,7 @@ export namespace Guestfs {
5204
5214
  * @param size
5205
5215
  * @param optargs a GuestfsAddDriveScratch containing optional arguments
5206
5216
  * @returns true on success, false on error
5217
+ * @since 1.23.10
5207
5218
  */
5208
5219
  add_drive_scratch(size: bigint | number, optargs: AddDriveScratch | null): boolean;
5209
5220
 
@@ -5215,6 +5226,8 @@ export namespace Guestfs {
5215
5226
  * @param filename
5216
5227
  * @param iface
5217
5228
  * @returns true on success, false on error
5229
+ * @since 1.0.84
5230
+ * @deprecated In new code, use `guestfs_session_add_drive()` instead
5218
5231
  */
5219
5232
  add_drive_with_if(filename: string, iface: string): boolean;
5220
5233
 
@@ -5256,6 +5269,7 @@ export namespace Guestfs {
5256
5269
  * @param dom pointer (not implemented in gobject bindings)
5257
5270
  * @param optargs a GuestfsAddLibvirtDom containing optional arguments
5258
5271
  * @returns the returned value, or -1 on error
5272
+ * @since 1.29.14
5259
5273
  */
5260
5274
  add_libvirt_dom(dom: null, optargs: AddLibvirtDom | null): number;
5261
5275
 
@@ -5266,6 +5280,7 @@ export namespace Guestfs {
5266
5280
  * augtool(1) `clear` command.
5267
5281
  * @param augpath
5268
5282
  * @returns true on success, false on error
5283
+ * @since 1.3.4
5269
5284
  */
5270
5285
  aug_clear(augpath: string): boolean;
5271
5286
 
@@ -5276,6 +5291,7 @@ export namespace Guestfs {
5276
5291
  * After calling this, you have to call `guestfs_session_aug_init()` again
5277
5292
  * before you can use any other Augeas functions.
5278
5293
  * @returns true on success, false on error
5294
+ * @since 0.7
5279
5295
  */
5280
5296
  aug_close(): boolean;
5281
5297
 
@@ -5294,6 +5310,7 @@ export namespace Guestfs {
5294
5310
  * @param expr
5295
5311
  * @param val
5296
5312
  * @returns a IntBool object, or NULL on error
5313
+ * @since 0.7
5297
5314
  */
5298
5315
  aug_defnode(name: string, expr: string, val: string): IntBool;
5299
5316
 
@@ -5308,6 +5325,7 @@ export namespace Guestfs {
5308
5325
  * @param name
5309
5326
  * @param expr
5310
5327
  * @returns the returned value, or -1 on error
5328
+ * @since 0.7
5311
5329
  */
5312
5330
  aug_defvar(name: string, expr: string | null): number;
5313
5331
 
@@ -5318,6 +5336,7 @@ export namespace Guestfs {
5318
5336
  * node, the `value` is returned.
5319
5337
  * @param augpath
5320
5338
  * @returns the returned string, or NULL on error
5339
+ * @since 0.7
5321
5340
  */
5322
5341
  aug_get(augpath: string): string;
5323
5342
 
@@ -5366,6 +5385,7 @@ export namespace Guestfs {
5366
5385
  * @param root
5367
5386
  * @param flags
5368
5387
  * @returns true on success, false on error
5388
+ * @since 0.7
5369
5389
  */
5370
5390
  aug_init(root: string, flags: number): boolean;
5371
5391
 
@@ -5381,6 +5401,7 @@ export namespace Guestfs {
5381
5401
  * @param label
5382
5402
  * @param before
5383
5403
  * @returns true on success, false on error
5404
+ * @since 0.7
5384
5405
  */
5385
5406
  aug_insert(augpath: string, label: string, before: boolean): boolean;
5386
5407
 
@@ -5392,6 +5413,7 @@ export namespace Guestfs {
5392
5413
  * function returns an error.
5393
5414
  * @param augpath
5394
5415
  * @returns the returned string, or NULL on error
5416
+ * @since 1.23.14
5395
5417
  */
5396
5418
  aug_label(augpath: string): string;
5397
5419
 
@@ -5402,6 +5424,7 @@ export namespace Guestfs {
5402
5424
  *
5403
5425
  * See `aug_load` in the Augeas documentation for the full gory details.
5404
5426
  * @returns true on success, false on error
5427
+ * @since 0.7
5405
5428
  */
5406
5429
  aug_load(): boolean;
5407
5430
 
@@ -5412,6 +5435,7 @@ export namespace Guestfs {
5412
5435
  * and sorting the resulting nodes into alphabetical order.
5413
5436
  * @param augpath
5414
5437
  * @returns an array of returned strings, or NULL on error
5438
+ * @since 0.8
5415
5439
  */
5416
5440
  aug_ls(augpath: string): string[];
5417
5441
 
@@ -5423,6 +5447,7 @@ export namespace Guestfs {
5423
5447
  * node in the current tree.
5424
5448
  * @param augpath
5425
5449
  * @returns an array of returned strings, or NULL on error
5450
+ * @since 0.7
5426
5451
  */
5427
5452
  aug_match(augpath: string): string[];
5428
5453
 
@@ -5434,6 +5459,7 @@ export namespace Guestfs {
5434
5459
  * @param src
5435
5460
  * @param dest
5436
5461
  * @returns true on success, false on error
5462
+ * @since 0.7
5437
5463
  */
5438
5464
  aug_mv(src: string, dest: string): boolean;
5439
5465
 
@@ -5445,6 +5471,7 @@ export namespace Guestfs {
5445
5471
  * On success this returns the number of entries which were removed.
5446
5472
  * @param augpath
5447
5473
  * @returns the returned value, or -1 on error
5474
+ * @since 0.7
5448
5475
  */
5449
5476
  aug_rm(augpath: string): number;
5450
5477
 
@@ -5456,6 +5483,7 @@ export namespace Guestfs {
5456
5483
  * The flags which were passed to `guestfs_session_aug_init()` affect exactly
5457
5484
  * how files are saved.
5458
5485
  * @returns true on success, false on error
5486
+ * @since 0.7
5459
5487
  */
5460
5488
  aug_save(): boolean;
5461
5489
 
@@ -5471,6 +5499,7 @@ export namespace Guestfs {
5471
5499
  * @param augpath
5472
5500
  * @param val
5473
5501
  * @returns true on success, false on error
5502
+ * @since 0.7
5474
5503
  */
5475
5504
  aug_set(augpath: string, val: string): boolean;
5476
5505
 
@@ -5488,6 +5517,7 @@ export namespace Guestfs {
5488
5517
  * @param sub
5489
5518
  * @param val
5490
5519
  * @returns the returned value, or -1 on error
5520
+ * @since 1.23.14
5491
5521
  */
5492
5522
  aug_setm(base: string, sub: string | null, val: string): number;
5493
5523
 
@@ -5503,6 +5533,7 @@ export namespace Guestfs {
5503
5533
  * @param file
5504
5534
  * @param optargs a GuestfsAugTransform containing optional arguments
5505
5535
  * @returns true on success, false on error
5536
+ * @since 1.35.2
5506
5537
  */
5507
5538
  aug_transform(lens: string, file: string, optargs: AugTransform | null): boolean;
5508
5539
 
@@ -5557,6 +5588,7 @@ export namespace Guestfs {
5557
5588
  * See also `guestfs_session_filesystem_available()`.
5558
5589
  * @param groups an array of strings
5559
5590
  * @returns true on success, false on error
5591
+ * @since 1.0.80
5560
5592
  */
5561
5593
  available(groups: string[]): boolean;
5562
5594
 
@@ -5572,6 +5604,7 @@ export namespace Guestfs {
5572
5604
  * See also `guestfs_session_available()`,
5573
5605
  * `guestfs_session_feature_available()` and "AVAILABILITY" in guestfs(3).
5574
5606
  * @returns an array of returned strings, or NULL on error
5607
+ * @since 1.3.15
5575
5608
  */
5576
5609
  available_all_groups(): string[];
5577
5610
 
@@ -5583,6 +5616,7 @@ export namespace Guestfs {
5583
5616
  * @param filename
5584
5617
  * @param cancellable A GCancellable object
5585
5618
  * @returns true on success, false on error
5619
+ * @since 1.3.5
5586
5620
  */
5587
5621
  base64_in(base64file: string, filename: string, cancellable: Gio.Cancellable | null): boolean;
5588
5622
 
@@ -5595,6 +5629,7 @@ export namespace Guestfs {
5595
5629
  * @param base64file
5596
5630
  * @param cancellable A GCancellable object
5597
5631
  * @returns true on success, false on error
5632
+ * @since 1.3.5
5598
5633
  */
5599
5634
  base64_out(filename: string, base64file: string, cancellable: Gio.Cancellable | null): boolean;
5600
5635
 
@@ -5614,6 +5649,7 @@ export namespace Guestfs {
5614
5649
  * See also `guestfs_session_feature_available()`.
5615
5650
  * @param device
5616
5651
  * @returns true on success, false on error
5652
+ * @since 1.25.44
5617
5653
  */
5618
5654
  blkdiscard(device: string): boolean;
5619
5655
 
@@ -5631,6 +5667,7 @@ export namespace Guestfs {
5631
5667
  * See also `guestfs_session_feature_available()`.
5632
5668
  * @param device
5633
5669
  * @returns the returned value, or -1 on error
5670
+ * @since 1.25.44
5634
5671
  */
5635
5672
  blkdiscardzeroes(device: string): number;
5636
5673
 
@@ -5657,6 +5694,7 @@ export namespace Guestfs {
5657
5694
  * The usage of this device, for example `filesystem` or `raid`.
5658
5695
  * @param device
5659
5696
  * @returns a GHashTable of results, or NULL on error
5697
+ * @since 1.15.9
5660
5698
  */
5661
5699
  blkid(device: string): { [key: string]: string };
5662
5700
 
@@ -5668,6 +5706,7 @@ export namespace Guestfs {
5668
5706
  * This uses the blockdev(8) command.
5669
5707
  * @param device
5670
5708
  * @returns true on success, false on error
5709
+ * @since 1.9.3
5671
5710
  */
5672
5711
  blockdev_flushbufs(device: string): boolean;
5673
5712
 
@@ -5684,6 +5723,7 @@ export namespace Guestfs {
5684
5723
  * This uses the blockdev(8) command.
5685
5724
  * @param device
5686
5725
  * @returns the returned value, or -1 on error
5726
+ * @since 1.9.3
5687
5727
  */
5688
5728
  blockdev_getbsz(device: string): number;
5689
5729
 
@@ -5696,6 +5736,7 @@ export namespace Guestfs {
5696
5736
  * This uses the blockdev(8) command.
5697
5737
  * @param device
5698
5738
  * @returns the returned value, or -1 on error
5739
+ * @since 1.9.3
5699
5740
  */
5700
5741
  blockdev_getro(device: string): number;
5701
5742
 
@@ -5709,6 +5750,7 @@ export namespace Guestfs {
5709
5750
  * This uses the blockdev(8) command.
5710
5751
  * @param device
5711
5752
  * @returns the returned value, or -1 on error
5753
+ * @since 1.9.3
5712
5754
  */
5713
5755
  blockdev_getsize64(device: string): number;
5714
5756
 
@@ -5724,6 +5766,7 @@ export namespace Guestfs {
5724
5766
  * This uses the blockdev(8) command.
5725
5767
  * @param device
5726
5768
  * @returns the returned value, or -1 on error
5769
+ * @since 1.9.3
5727
5770
  */
5728
5771
  blockdev_getss(device: string): number;
5729
5772
 
@@ -5740,6 +5783,7 @@ export namespace Guestfs {
5740
5783
  * This uses the blockdev(8) command.
5741
5784
  * @param device
5742
5785
  * @returns the returned value, or -1 on error
5786
+ * @since 1.9.3
5743
5787
  */
5744
5788
  blockdev_getsz(device: string): number;
5745
5789
 
@@ -5751,6 +5795,7 @@ export namespace Guestfs {
5751
5795
  * This uses the blockdev(8) command.
5752
5796
  * @param device
5753
5797
  * @returns true on success, false on error
5798
+ * @since 1.9.3
5754
5799
  */
5755
5800
  blockdev_rereadpt(device: string): boolean;
5756
5801
 
@@ -5765,6 +5810,8 @@ export namespace Guestfs {
5765
5810
  * @param device
5766
5811
  * @param blocksize
5767
5812
  * @returns true on success, false on error
5813
+ * @since 1.9.3
5814
+ * @deprecated There is no documented replacement
5768
5815
  */
5769
5816
  blockdev_setbsz(device: string, blocksize: number): boolean;
5770
5817
 
@@ -5777,6 +5824,7 @@ export namespace Guestfs {
5777
5824
  * @param device
5778
5825
  * @param sectors
5779
5826
  * @returns true on success, false on error
5827
+ * @since 1.29.10
5780
5828
  */
5781
5829
  blockdev_setra(device: string, sectors: number): boolean;
5782
5830
 
@@ -5788,6 +5836,7 @@ export namespace Guestfs {
5788
5836
  * This uses the blockdev(8) command.
5789
5837
  * @param device
5790
5838
  * @returns true on success, false on error
5839
+ * @since 1.9.3
5791
5840
  */
5792
5841
  blockdev_setro(device: string): boolean;
5793
5842
 
@@ -5799,6 +5848,7 @@ export namespace Guestfs {
5799
5848
  * This uses the blockdev(8) command.
5800
5849
  * @param device
5801
5850
  * @returns true on success, false on error
5851
+ * @since 1.9.3
5802
5852
  */
5803
5853
  blockdev_setrw(device: string): boolean;
5804
5854
 
@@ -5811,6 +5861,7 @@ export namespace Guestfs {
5811
5861
  * See also `guestfs_session_feature_available()`.
5812
5862
  * @param path
5813
5863
  * @returns true on success, false on error
5864
+ * @since 1.29.22
5814
5865
  */
5815
5866
  btrfs_balance_cancel(path: string): boolean;
5816
5867
 
@@ -5823,6 +5874,7 @@ export namespace Guestfs {
5823
5874
  * See also `guestfs_session_feature_available()`.
5824
5875
  * @param path
5825
5876
  * @returns true on success, false on error
5877
+ * @since 1.29.22
5826
5878
  */
5827
5879
  btrfs_balance_pause(path: string): boolean;
5828
5880
 
@@ -5835,6 +5887,7 @@ export namespace Guestfs {
5835
5887
  * See also `guestfs_session_feature_available()`.
5836
5888
  * @param path
5837
5889
  * @returns true on success, false on error
5890
+ * @since 1.29.22
5838
5891
  */
5839
5892
  btrfs_balance_resume(path: string): boolean;
5840
5893
 
@@ -5847,6 +5900,7 @@ export namespace Guestfs {
5847
5900
  * See also `guestfs_session_feature_available()`.
5848
5901
  * @param path
5849
5902
  * @returns a BTRFSBalance object, or NULL on error
5903
+ * @since 1.29.26
5850
5904
  */
5851
5905
  btrfs_balance_status(path: string): BTRFSBalance;
5852
5906
 
@@ -5861,6 +5915,7 @@ export namespace Guestfs {
5861
5915
  * @param devices an array of strings
5862
5916
  * @param fs
5863
5917
  * @returns true on success, false on error
5918
+ * @since 1.17.35
5864
5919
  */
5865
5920
  btrfs_device_add(devices: string[], fs: string): boolean;
5866
5921
 
@@ -5875,6 +5930,7 @@ export namespace Guestfs {
5875
5930
  * @param devices an array of strings
5876
5931
  * @param fs
5877
5932
  * @returns true on success, false on error
5933
+ * @since 1.17.35
5878
5934
  */
5879
5935
  btrfs_device_delete(devices: string[], fs: string): boolean;
5880
5936
 
@@ -5888,6 +5944,7 @@ export namespace Guestfs {
5888
5944
  * See also `guestfs_session_feature_available()`.
5889
5945
  * @param fs
5890
5946
  * @returns true on success, false on error
5947
+ * @since 1.17.35
5891
5948
  */
5892
5949
  btrfs_filesystem_balance(fs: string): boolean;
5893
5950
 
@@ -5902,6 +5959,7 @@ export namespace Guestfs {
5902
5959
  * @param path
5903
5960
  * @param optargs a GuestfsBTRFSFilesystemDefragment containing optional arguments
5904
5961
  * @returns true on success, false on error
5962
+ * @since 1.29.22
5905
5963
  */
5906
5964
  btrfs_filesystem_defragment(path: string, optargs: BTRFSFilesystemDefragment | null): boolean;
5907
5965
 
@@ -5927,6 +5985,7 @@ export namespace Guestfs {
5927
5985
  * @param mountpoint
5928
5986
  * @param optargs a GuestfsBTRFSFilesystemResize containing optional arguments
5929
5987
  * @returns true on success, false on error
5988
+ * @since 1.11.17
5930
5989
  */
5931
5990
  btrfs_filesystem_resize(mountpoint: string, optargs: BTRFSFilesystemResize | null): boolean;
5932
5991
 
@@ -5942,6 +6001,7 @@ export namespace Guestfs {
5942
6001
  * See also `guestfs_session_feature_available()`.
5943
6002
  * @param device
5944
6003
  * @returns an array of returned strings, or NULL on error
6004
+ * @since 1.33.29
5945
6005
  */
5946
6006
  btrfs_filesystem_show(device: string): string[];
5947
6007
 
@@ -5954,6 +6014,7 @@ export namespace Guestfs {
5954
6014
  * See also `guestfs_session_feature_available()`.
5955
6015
  * @param fs
5956
6016
  * @returns true on success, false on error
6017
+ * @since 1.17.35
5957
6018
  */
5958
6019
  btrfs_filesystem_sync(fs: string): boolean;
5959
6020
 
@@ -5968,6 +6029,7 @@ export namespace Guestfs {
5968
6029
  * @param device
5969
6030
  * @param optargs a GuestfsBtrfsFsck containing optional arguments
5970
6031
  * @returns true on success, false on error
6032
+ * @since 1.17.43
5971
6033
  */
5972
6034
  btrfs_fsck(device: string, optargs: BtrfsFsck | null): boolean;
5973
6035
 
@@ -5983,6 +6045,7 @@ export namespace Guestfs {
5983
6045
  * @param image
5984
6046
  * @param optargs a GuestfsBTRFSImage containing optional arguments
5985
6047
  * @returns true on success, false on error
6048
+ * @since 1.29.32
5986
6049
  */
5987
6050
  btrfs_image(source: string[], image: string, optargs: BTRFSImage | null): boolean;
5988
6051
 
@@ -5998,6 +6061,7 @@ export namespace Guestfs {
5998
6061
  * @param dst
5999
6062
  * @param path
6000
6063
  * @returns true on success, false on error
6064
+ * @since 1.29.17
6001
6065
  */
6002
6066
  btrfs_qgroup_assign(src: string, dst: string, path: string): boolean;
6003
6067
 
@@ -6011,6 +6075,7 @@ export namespace Guestfs {
6011
6075
  * @param qgroupid
6012
6076
  * @param subvolume
6013
6077
  * @returns true on success, false on error
6078
+ * @since 1.29.17
6014
6079
  */
6015
6080
  btrfs_qgroup_create(qgroupid: string, subvolume: string): boolean;
6016
6081
 
@@ -6024,6 +6089,7 @@ export namespace Guestfs {
6024
6089
  * @param qgroupid
6025
6090
  * @param subvolume
6026
6091
  * @returns true on success, false on error
6092
+ * @since 1.29.17
6027
6093
  */
6028
6094
  btrfs_qgroup_destroy(qgroupid: string, subvolume: string): boolean;
6029
6095
 
@@ -6037,6 +6103,7 @@ export namespace Guestfs {
6037
6103
  * @param subvolume
6038
6104
  * @param size
6039
6105
  * @returns true on success, false on error
6106
+ * @since 1.29.17
6040
6107
  */
6041
6108
  btrfs_qgroup_limit(subvolume: string, size: bigint | number): boolean;
6042
6109
 
@@ -6051,6 +6118,7 @@ export namespace Guestfs {
6051
6118
  * @param dst
6052
6119
  * @param path
6053
6120
  * @returns true on success, false on error
6121
+ * @since 1.29.17
6054
6122
  */
6055
6123
  btrfs_qgroup_remove(src: string, dst: string, path: string): boolean;
6056
6124
 
@@ -6064,6 +6132,7 @@ export namespace Guestfs {
6064
6132
  * See also `guestfs_session_feature_available()`.
6065
6133
  * @param path
6066
6134
  * @returns an array of BTRFSQgroup objects, or NULL on error
6135
+ * @since 1.29.17
6067
6136
  */
6068
6137
  btrfs_qgroup_show(path: string): BTRFSQgroup[];
6069
6138
 
@@ -6078,6 +6147,7 @@ export namespace Guestfs {
6078
6147
  * @param fs
6079
6148
  * @param enable
6080
6149
  * @returns true on success, false on error
6150
+ * @since 1.29.17
6081
6151
  */
6082
6152
  btrfs_quota_enable(fs: string, enable: boolean): boolean;
6083
6153
 
@@ -6091,6 +6161,7 @@ export namespace Guestfs {
6091
6161
  * See also `guestfs_session_feature_available()`.
6092
6162
  * @param fs
6093
6163
  * @returns true on success, false on error
6164
+ * @since 1.29.17
6094
6165
  */
6095
6166
  btrfs_quota_rescan(fs: string): boolean;
6096
6167
 
@@ -6112,6 +6183,7 @@ export namespace Guestfs {
6112
6183
  * @param targetdev
6113
6184
  * @param mntpoint
6114
6185
  * @returns true on success, false on error
6186
+ * @since 1.29.48
6115
6187
  */
6116
6188
  btrfs_replace(srcdev: string, targetdev: string, mntpoint: string): boolean;
6117
6189
 
@@ -6125,6 +6197,7 @@ export namespace Guestfs {
6125
6197
  * See also `guestfs_session_feature_available()`.
6126
6198
  * @param device
6127
6199
  * @returns true on success, false on error
6200
+ * @since 1.29.22
6128
6201
  */
6129
6202
  btrfs_rescue_chunk_recover(device: string): boolean;
6130
6203
 
@@ -6137,6 +6210,7 @@ export namespace Guestfs {
6137
6210
  * See also `guestfs_session_feature_available()`.
6138
6211
  * @param device
6139
6212
  * @returns true on success, false on error
6213
+ * @since 1.29.22
6140
6214
  */
6141
6215
  btrfs_rescue_super_recover(device: string): boolean;
6142
6216
 
@@ -6149,6 +6223,7 @@ export namespace Guestfs {
6149
6223
  * See also `guestfs_session_feature_available()`.
6150
6224
  * @param path
6151
6225
  * @returns true on success, false on error
6226
+ * @since 1.29.22
6152
6227
  */
6153
6228
  btrfs_scrub_cancel(path: string): boolean;
6154
6229
 
@@ -6161,6 +6236,7 @@ export namespace Guestfs {
6161
6236
  * See also `guestfs_session_feature_available()`.
6162
6237
  * @param path
6163
6238
  * @returns true on success, false on error
6239
+ * @since 1.29.22
6164
6240
  */
6165
6241
  btrfs_scrub_resume(path: string): boolean;
6166
6242
 
@@ -6175,6 +6251,7 @@ export namespace Guestfs {
6175
6251
  * See also `guestfs_session_feature_available()`.
6176
6252
  * @param path
6177
6253
  * @returns true on success, false on error
6254
+ * @since 1.29.22
6178
6255
  */
6179
6256
  btrfs_scrub_start(path: string): boolean;
6180
6257
 
@@ -6187,6 +6264,7 @@ export namespace Guestfs {
6187
6264
  * See also `guestfs_session_feature_available()`.
6188
6265
  * @param path
6189
6266
  * @returns a BTRFSScrub object, or NULL on error
6267
+ * @since 1.29.26
6190
6268
  */
6191
6269
  btrfs_scrub_status(path: string): BTRFSScrub;
6192
6270
 
@@ -6201,6 +6279,7 @@ export namespace Guestfs {
6201
6279
  * @param device
6202
6280
  * @param seeding
6203
6281
  * @returns true on success, false on error
6282
+ * @since 1.17.43
6204
6283
  */
6205
6284
  btrfs_set_seeding(device: string, seeding: boolean): boolean;
6206
6285
 
@@ -6217,6 +6296,7 @@ export namespace Guestfs {
6217
6296
  * @param dest
6218
6297
  * @param optargs a GuestfsBTRFSSubvolumeCreate containing optional arguments
6219
6298
  * @returns true on success, false on error
6299
+ * @since 1.17.35
6220
6300
  */
6221
6301
  btrfs_subvolume_create(dest: string, optargs: BTRFSSubvolumeCreate | null): boolean;
6222
6302
 
@@ -6229,6 +6309,7 @@ export namespace Guestfs {
6229
6309
  * See also `guestfs_session_feature_available()`.
6230
6310
  * @param subvolume
6231
6311
  * @returns true on success, false on error
6312
+ * @since 1.17.35
6232
6313
  */
6233
6314
  btrfs_subvolume_delete(subvolume: string): boolean;
6234
6315
 
@@ -6242,6 +6323,7 @@ export namespace Guestfs {
6242
6323
  * See also `guestfs_session_feature_available()`.
6243
6324
  * @param fs
6244
6325
  * @returns the returned value, or -1 on error
6326
+ * @since 1.29.17
6245
6327
  */
6246
6328
  btrfs_subvolume_get_default(fs: string): number;
6247
6329
 
@@ -6255,6 +6337,7 @@ export namespace Guestfs {
6255
6337
  * See also `guestfs_session_feature_available()`.
6256
6338
  * @param fs
6257
6339
  * @returns an array of BTRFSSubvolume objects, or NULL on error
6340
+ * @since 1.17.35
6258
6341
  */
6259
6342
  btrfs_subvolume_list(fs: string): BTRFSSubvolume[];
6260
6343
 
@@ -6270,6 +6353,7 @@ export namespace Guestfs {
6270
6353
  * @param id
6271
6354
  * @param fs
6272
6355
  * @returns true on success, false on error
6356
+ * @since 1.17.35
6273
6357
  */
6274
6358
  btrfs_subvolume_set_default(id: bigint | number, fs: string): boolean;
6275
6359
 
@@ -6282,6 +6366,7 @@ export namespace Guestfs {
6282
6366
  * See also `guestfs_session_feature_available()`.
6283
6367
  * @param subvolume
6284
6368
  * @returns a GHashTable of results, or NULL on error
6369
+ * @since 1.29.17
6285
6370
  */
6286
6371
  btrfs_subvolume_show(subvolume: string): { [key: string]: string };
6287
6372
 
@@ -6301,6 +6386,7 @@ export namespace Guestfs {
6301
6386
  * @param dest
6302
6387
  * @param optargs a GuestfsBTRFSSubvolumeSnapshot containing optional arguments
6303
6388
  * @returns true on success, false on error
6389
+ * @since 1.17.35
6304
6390
  */
6305
6391
  btrfs_subvolume_snapshot(source: string, dest: string, optargs: BTRFSSubvolumeSnapshot | null): boolean;
6306
6392
 
@@ -6313,6 +6399,7 @@ export namespace Guestfs {
6313
6399
  * See also `guestfs_session_feature_available()`.
6314
6400
  * @param device
6315
6401
  * @returns true on success, false on error
6402
+ * @since 1.29.29
6316
6403
  */
6317
6404
  btrfstune_enable_extended_inode_refs(device: string): boolean;
6318
6405
 
@@ -6325,6 +6412,7 @@ export namespace Guestfs {
6325
6412
  * See also `guestfs_session_feature_available()`.
6326
6413
  * @param device
6327
6414
  * @returns true on success, false on error
6415
+ * @since 1.29.29
6328
6416
  */
6329
6417
  btrfstune_enable_skinny_metadata_extent_refs(device: string): boolean;
6330
6418
 
@@ -6339,6 +6427,7 @@ export namespace Guestfs {
6339
6427
  * @param device
6340
6428
  * @param seeding
6341
6429
  * @returns true on success, false on error
6430
+ * @since 1.29.29
6342
6431
  */
6343
6432
  btrfstune_seeding(device: string, seeding: boolean): boolean;
6344
6433
 
@@ -6349,6 +6438,7 @@ export namespace Guestfs {
6349
6438
  * pointer to the handle (ie. "guestfs_h *"). The purpose of this is to
6350
6439
  * allow other libraries to interwork with libguestfs.
6351
6440
  * @returns the returned value, or -1 on error
6441
+ * @since 1.29.17
6352
6442
  */
6353
6443
  c_pointer(): number;
6354
6444
 
@@ -6373,6 +6463,7 @@ export namespace Guestfs {
6373
6463
  * Other strings are returned unmodified.
6374
6464
  * @param device
6375
6465
  * @returns the returned string, or NULL on error
6466
+ * @since 1.19.7
6376
6467
  */
6377
6468
  canonical_device_name(device: string): string;
6378
6469
 
@@ -6388,6 +6479,7 @@ export namespace Guestfs {
6388
6479
  * See also `guestfs_session_feature_available()`.
6389
6480
  * @param path
6390
6481
  * @returns the returned string, or NULL on error
6482
+ * @since 1.19.63
6391
6483
  */
6392
6484
  cap_get_file(path: string): string;
6393
6485
 
@@ -6403,6 +6495,7 @@ export namespace Guestfs {
6403
6495
  * @param path
6404
6496
  * @param cap
6405
6497
  * @returns true on success, false on error
6498
+ * @since 1.19.63
6406
6499
  */
6407
6500
  cap_set_file(path: string, cap: string): boolean;
6408
6501
 
@@ -6453,6 +6546,7 @@ export namespace Guestfs {
6453
6546
  * See also `guestfs_session_realpath()`.
6454
6547
  * @param path
6455
6548
  * @returns the returned string, or NULL on error
6549
+ * @since 1.0.75
6456
6550
  */
6457
6551
  case_sensitive_path(path: string): string;
6458
6552
 
@@ -6467,6 +6561,7 @@ export namespace Guestfs {
6467
6561
  * `guestfs_session_download()` functions.
6468
6562
  * @param path
6469
6563
  * @returns the returned string, or NULL on error
6564
+ * @since 0.4
6470
6565
  */
6471
6566
  cat(path: string): string;
6472
6567
 
@@ -6510,6 +6605,7 @@ export namespace Guestfs {
6510
6605
  * @param csumtype
6511
6606
  * @param path
6512
6607
  * @returns the returned string, or NULL on error
6608
+ * @since 1.0.2
6513
6609
  */
6514
6610
  checksum(csumtype: string, path: string): string;
6515
6611
 
@@ -6522,6 +6618,7 @@ export namespace Guestfs {
6522
6618
  * @param csumtype
6523
6619
  * @param device
6524
6620
  * @returns the returned string, or NULL on error
6621
+ * @since 1.3.2
6525
6622
  */
6526
6623
  checksum_device(csumtype: string, device: string): string;
6527
6624
 
@@ -6542,6 +6639,7 @@ export namespace Guestfs {
6542
6639
  * @param sumsfile
6543
6640
  * @param cancellable A GCancellable object
6544
6641
  * @returns true on success, false on error
6642
+ * @since 1.3.7
6545
6643
  */
6546
6644
  checksums_out(csumtype: string, directory: string, sumsfile: string, cancellable: Gio.Cancellable | null): boolean;
6547
6645
 
@@ -6559,6 +6657,7 @@ export namespace Guestfs {
6559
6657
  * @param mode
6560
6658
  * @param path
6561
6659
  * @returns true on success, false on error
6660
+ * @since 0.8
6562
6661
  */
6563
6662
  chmod(mode: number, path: string): boolean;
6564
6663
 
@@ -6574,6 +6673,7 @@ export namespace Guestfs {
6574
6673
  * @param group
6575
6674
  * @param path
6576
6675
  * @returns true on success, false on error
6676
+ * @since 0.8
6577
6677
  */
6578
6678
  chown(owner: number, group: number, path: string): boolean;
6579
6679
 
@@ -6589,6 +6689,7 @@ export namespace Guestfs {
6589
6689
  * See "BACKEND" in guestfs(3), "BACKEND SETTINGS" in guestfs(3).
6590
6690
  * @param name
6591
6691
  * @returns the returned value, or -1 on error
6692
+ * @since 1.27.2
6592
6693
  */
6593
6694
  clear_backend_setting(name: string): number;
6594
6695
 
@@ -6627,6 +6728,7 @@ export namespace Guestfs {
6627
6728
  * are mounted at the right locations.
6628
6729
  * @param _arguments an array of strings
6629
6730
  * @returns the returned string, or NULL on error
6731
+ * @since 1.9.1
6630
6732
  */
6631
6733
  command(_arguments: string[]): string;
6632
6734
 
@@ -6639,6 +6741,7 @@ export namespace Guestfs {
6639
6741
  * See also: `guestfs_session_sh_lines()`
6640
6742
  * @param _arguments an array of strings
6641
6743
  * @returns an array of returned strings, or NULL on error
6744
+ * @since 1.9.1
6642
6745
  */
6643
6746
  command_lines(_arguments: string[]): string[];
6644
6747
 
@@ -6656,6 +6759,7 @@ export namespace Guestfs {
6656
6759
  * @param optargs a GuestfsCompressDeviceOut containing optional arguments
6657
6760
  * @param cancellable A GCancellable object
6658
6761
  * @returns true on success, false on error
6762
+ * @since 1.13.15
6659
6763
  */
6660
6764
  compress_device_out(ctype: string, device: string, zdevice: string, optargs: CompressDeviceOut | null, cancellable: Gio.Cancellable | null): boolean;
6661
6765
 
@@ -6679,6 +6783,7 @@ export namespace Guestfs {
6679
6783
  * @param optargs a GuestfsCompressOut containing optional arguments
6680
6784
  * @param cancellable A GCancellable object
6681
6785
  * @returns true on success, false on error
6786
+ * @since 1.13.15
6682
6787
  */
6683
6788
  compress_out(ctype: string, file: string, zfile: string, optargs: CompressOut | null, cancellable: Gio.Cancellable | null): boolean;
6684
6789
 
@@ -6696,6 +6801,7 @@ export namespace Guestfs {
6696
6801
  * @param hvparam
6697
6802
  * @param hvvalue
6698
6803
  * @returns true on success, false on error
6804
+ * @since 0.3
6699
6805
  */
6700
6806
  config(hvparam: string, hvvalue: string | null): boolean;
6701
6807
 
@@ -6729,6 +6835,7 @@ export namespace Guestfs {
6729
6835
  * @param dest
6730
6836
  * @param optargs a GuestfsCopyAttributes containing optional arguments
6731
6837
  * @returns true on success, false on error
6838
+ * @since 1.25.21
6732
6839
  */
6733
6840
  copy_attributes(src: string, dest: string, optargs: CopyAttributes | null): boolean;
6734
6841
 
@@ -6766,6 +6873,7 @@ export namespace Guestfs {
6766
6873
  * @param dest
6767
6874
  * @param optargs a GuestfsCopyDeviceToDevice containing optional arguments
6768
6875
  * @returns true on success, false on error
6876
+ * @since 1.13.25
6769
6877
  */
6770
6878
  copy_device_to_device(src: string, dest: string, optargs: CopyDeviceToDevice | null): boolean;
6771
6879
 
@@ -6778,6 +6886,7 @@ export namespace Guestfs {
6778
6886
  * @param dest
6779
6887
  * @param optargs a GuestfsCopyDeviceToFile containing optional arguments
6780
6888
  * @returns true on success, false on error
6889
+ * @since 1.13.25
6781
6890
  */
6782
6891
  copy_device_to_file(src: string, dest: string, optargs: CopyDeviceToFile | null): boolean;
6783
6892
 
@@ -6790,6 +6899,7 @@ export namespace Guestfs {
6790
6899
  * @param dest
6791
6900
  * @param optargs a GuestfsCopyFileToDevice containing optional arguments
6792
6901
  * @returns true on success, false on error
6902
+ * @since 1.13.25
6793
6903
  */
6794
6904
  copy_file_to_device(src: string, dest: string, optargs: CopyFileToDevice | null): boolean;
6795
6905
 
@@ -6807,6 +6917,7 @@ export namespace Guestfs {
6807
6917
  * @param dest
6808
6918
  * @param optargs a GuestfsCopyFileToFile containing optional arguments
6809
6919
  * @returns true on success, false on error
6920
+ * @since 1.13.25
6810
6921
  */
6811
6922
  copy_file_to_file(src: string, dest: string, optargs: CopyFileToFile | null): boolean;
6812
6923
 
@@ -6821,6 +6932,7 @@ export namespace Guestfs {
6821
6932
  * @param localpath
6822
6933
  * @param remotedir
6823
6934
  * @returns true on success, false on error
6935
+ * @since 1.29.24
6824
6936
  */
6825
6937
  copy_in(localpath: string, remotedir: string): boolean;
6826
6938
 
@@ -6839,6 +6951,7 @@ export namespace Guestfs {
6839
6951
  * @param remotepath
6840
6952
  * @param localdir
6841
6953
  * @returns true on success, false on error
6954
+ * @since 1.29.24
6842
6955
  */
6843
6956
  copy_out(remotepath: string, localdir: string): boolean;
6844
6957
 
@@ -6854,6 +6967,8 @@ export namespace Guestfs {
6854
6967
  * @param dest
6855
6968
  * @param size
6856
6969
  * @returns true on success, false on error
6970
+ * @since 1.0.87
6971
+ * @deprecated In new code, use `guestfs_session_copy_device_to_device()` instead
6857
6972
  */
6858
6973
  copy_size(src: string, dest: string, size: bigint | number): boolean;
6859
6974
 
@@ -6865,6 +6980,7 @@ export namespace Guestfs {
6865
6980
  * @param src
6866
6981
  * @param dest
6867
6982
  * @returns true on success, false on error
6983
+ * @since 1.0.18
6868
6984
  */
6869
6985
  cp(src: string, dest: string): boolean;
6870
6986
 
@@ -6876,6 +6992,7 @@ export namespace Guestfs {
6876
6992
  * @param src
6877
6993
  * @param dest
6878
6994
  * @returns true on success, false on error
6995
+ * @since 1.0.18
6879
6996
  */
6880
6997
  cp_a(src: string, dest: string): boolean;
6881
6998
 
@@ -6892,6 +7009,7 @@ export namespace Guestfs {
6892
7009
  * @param src
6893
7010
  * @param dest
6894
7011
  * @returns true on success, false on error
7012
+ * @since 1.21.38
6895
7013
  */
6896
7014
  cp_r(src: string, dest: string): boolean;
6897
7015
 
@@ -6917,6 +7035,7 @@ export namespace Guestfs {
6917
7035
  * @param optargs a GuestfsCpioOut containing optional arguments
6918
7036
  * @param cancellable A GCancellable object
6919
7037
  * @returns true on success, false on error
7038
+ * @since 1.27.9
6920
7039
  */
6921
7040
  cpio_out(directory: string, cpiofile: string, optargs: CpioOut | null, cancellable: Gio.Cancellable | null): boolean;
6922
7041
 
@@ -6933,6 +7052,8 @@ export namespace Guestfs {
6933
7052
  * @param src
6934
7053
  * @param dest
6935
7054
  * @returns true on success, false on error
7055
+ * @since 1.0.80
7056
+ * @deprecated In new code, use `guestfs_session_copy_device_to_device()` instead
6936
7057
  */
6937
7058
  dd(src: string, dest: string): boolean;
6938
7059
 
@@ -6948,6 +7069,7 @@ export namespace Guestfs {
6948
7069
  * @param subcmd
6949
7070
  * @param extraargs an array of strings
6950
7071
  * @returns the returned string, or NULL on error
7072
+ * @since 1.0.11
6951
7073
  */
6952
7074
  debug(subcmd: string, extraargs: string[]): string;
6953
7075
 
@@ -6957,6 +7079,7 @@ export namespace Guestfs {
6957
7079
  * This returns the internal list of drives. ‘debug’ commands are not part
6958
7080
  * of the formal API and can be removed or changed at any time.
6959
7081
  * @returns an array of returned strings, or NULL on error
7082
+ * @since 1.13.22
6960
7083
  */
6961
7084
  debug_drives(): string[];
6962
7085
 
@@ -6973,6 +7096,7 @@ export namespace Guestfs {
6973
7096
  * @param mode
6974
7097
  * @param cancellable A GCancellable object
6975
7098
  * @returns true on success, false on error
7099
+ * @since 1.3.5
6976
7100
  */
6977
7101
  debug_upload(filename: string, tmpname: string, mode: number, cancellable: Gio.Cancellable | null): boolean;
6978
7102
 
@@ -6988,6 +7112,7 @@ export namespace Guestfs {
6988
7112
  * See also `guestfs_session_list_devices()`, `guestfs_session_part_to_dev()`.
6989
7113
  * @param device
6990
7114
  * @returns the returned value, or -1 on error
7115
+ * @since 1.19.7
6991
7116
  */
6992
7117
  device_index(device: string): number;
6993
7118
 
@@ -7000,6 +7125,7 @@ export namespace Guestfs {
7000
7125
  * intended that you try to parse the output string. Use
7001
7126
  * `guestfs_session_statvfs()` from programs.
7002
7127
  * @returns the returned string, or NULL on error
7128
+ * @since 1.0.54
7003
7129
  */
7004
7130
  df(): string;
7005
7131
 
@@ -7013,6 +7139,7 @@ export namespace Guestfs {
7013
7139
  * intended that you try to parse the output string. Use
7014
7140
  * `guestfs_session_statvfs()` from programs.
7015
7141
  * @returns the returned string, or NULL on error
7142
+ * @since 1.0.54
7016
7143
  */
7017
7144
  df_h(): string;
7018
7145
 
@@ -7058,6 +7185,7 @@ export namespace Guestfs {
7058
7185
  * @param size
7059
7186
  * @param optargs a GuestfsDiskCreate containing optional arguments
7060
7187
  * @returns true on success, false on error
7188
+ * @since 1.25.31
7061
7189
  */
7062
7190
  disk_create(filename: string, format: string, size: bigint | number, optargs: DiskCreate | null): boolean;
7063
7191
 
@@ -7074,6 +7202,7 @@ export namespace Guestfs {
7074
7202
  * See also: "DISK IMAGE FORMATS" in guestfs(3)
7075
7203
  * @param filename
7076
7204
  * @returns the returned string, or NULL on error
7205
+ * @since 1.19.38
7077
7206
  */
7078
7207
  disk_format(filename: string): string;
7079
7208
 
@@ -7086,6 +7215,7 @@ export namespace Guestfs {
7086
7215
  * circumstances. See "CVE-2010-3851" in guestfs(3).
7087
7216
  * @param filename
7088
7217
  * @returns the returned value, or -1 on error
7218
+ * @since 1.19.39
7089
7219
  */
7090
7220
  disk_has_backing_file(filename: string): number;
7091
7221
 
@@ -7099,6 +7229,7 @@ export namespace Guestfs {
7099
7229
  * circumstances. See "CVE-2010-3851" in guestfs(3).
7100
7230
  * @param filename
7101
7231
  * @returns the returned value, or -1 on error
7232
+ * @since 1.19.39
7102
7233
  */
7103
7234
  disk_virtual_size(filename: string): number;
7104
7235
 
@@ -7112,6 +7243,7 @@ export namespace Guestfs {
7112
7243
  * with `guestfs_session_set_verbose()` or by setting the environment
7113
7244
  * variable "LIBGUESTFS_DEBUG=1" before running the program.
7114
7245
  * @returns the returned string, or NULL on error
7246
+ * @since 1.0.18
7115
7247
  */
7116
7248
  dmesg(): string;
7117
7249
 
@@ -7128,6 +7260,7 @@ export namespace Guestfs {
7128
7260
  * @param filename
7129
7261
  * @param cancellable A GCancellable object
7130
7262
  * @returns true on success, false on error
7263
+ * @since 1.0.2
7131
7264
  */
7132
7265
  download(remotefilename: string, filename: string, cancellable: Gio.Cancellable | null): boolean;
7133
7266
 
@@ -7159,6 +7292,7 @@ export namespace Guestfs {
7159
7292
  * @param optargs a GuestfsDownloadBlocks containing optional arguments
7160
7293
  * @param cancellable A GCancellable object
7161
7294
  * @returns true on success, false on error
7295
+ * @since 1.33.45
7162
7296
  */
7163
7297
  download_blocks(device: string, start: bigint | number, stop: bigint | number, filename: string, optargs: DownloadBlocks | null, cancellable: Gio.Cancellable | null): boolean;
7164
7298
 
@@ -7179,6 +7313,7 @@ export namespace Guestfs {
7179
7313
  * @param filename
7180
7314
  * @param cancellable A GCancellable object
7181
7315
  * @returns true on success, false on error
7316
+ * @since 1.33.14
7182
7317
  */
7183
7318
  download_inode(device: string, inode: bigint | number, filename: string, cancellable: Gio.Cancellable | null): boolean;
7184
7319
 
@@ -7202,6 +7337,7 @@ export namespace Guestfs {
7202
7337
  * @param size
7203
7338
  * @param cancellable A GCancellable object
7204
7339
  * @returns true on success, false on error
7340
+ * @since 1.5.17
7205
7341
  */
7206
7342
  download_offset(remotefilename: string, filename: string, offset: bigint | number, size: bigint | number, cancellable: Gio.Cancellable | null): boolean;
7207
7343
 
@@ -7219,6 +7355,7 @@ export namespace Guestfs {
7219
7355
  * maximum guest memory is freed.
7220
7356
  * @param whattodrop
7221
7357
  * @returns true on success, false on error
7358
+ * @since 1.0.18
7222
7359
  */
7223
7360
  drop_caches(whattodrop: number): boolean;
7224
7361
 
@@ -7236,6 +7373,7 @@ export namespace Guestfs {
7236
7373
  * bytes).
7237
7374
  * @param path
7238
7375
  * @returns the returned value, or -1 on error
7376
+ * @since 1.0.54
7239
7377
  */
7240
7378
  du(path: string): number;
7241
7379
 
@@ -7262,6 +7400,7 @@ export namespace Guestfs {
7262
7400
  * @param device
7263
7401
  * @param optargs a GuestfsE2fsck containing optional arguments
7264
7402
  * @returns true on success, false on error
7403
+ * @since 1.15.17
7265
7404
  */
7266
7405
  e2fsck(device: string, optargs: E2fsck | null): boolean;
7267
7406
 
@@ -7273,6 +7412,8 @@ export namespace Guestfs {
7273
7412
  * appears to be clean (*-f*).
7274
7413
  * @param device
7275
7414
  * @returns true on success, false on error
7415
+ * @since 1.0.29
7416
+ * @deprecated In new code, use `guestfs_session_e2fsck()` instead
7276
7417
  */
7277
7418
  e2fsck_f(device: string): boolean;
7278
7419
 
@@ -7287,6 +7428,7 @@ export namespace Guestfs {
7287
7428
  * See also `guestfs_session_ping_daemon()`.
7288
7429
  * @param words an array of strings
7289
7430
  * @returns the returned string, or NULL on error
7431
+ * @since 1.0.69
7290
7432
  */
7291
7433
  echo_daemon(words: string[]): string;
7292
7434
 
@@ -7297,6 +7439,8 @@ export namespace Guestfs {
7297
7439
  * @param regex
7298
7440
  * @param path
7299
7441
  * @returns an array of returned strings, or NULL on error
7442
+ * @since 1.0.66
7443
+ * @deprecated In new code, use `guestfs_session_grep()` instead
7300
7444
  */
7301
7445
  egrep(regex: string, path: string): string[];
7302
7446
 
@@ -7308,6 +7452,8 @@ export namespace Guestfs {
7308
7452
  * @param regex
7309
7453
  * @param path
7310
7454
  * @returns an array of returned strings, or NULL on error
7455
+ * @since 1.0.66
7456
+ * @deprecated In new code, use `guestfs_session_grep()` instead
7311
7457
  */
7312
7458
  egrepi(regex: string, path: string): string[];
7313
7459
 
@@ -7321,6 +7467,7 @@ export namespace Guestfs {
7321
7467
  * @param file1
7322
7468
  * @param file2
7323
7469
  * @returns the returned value, or -1 on error
7470
+ * @since 1.0.18
7324
7471
  */
7325
7472
  equal(file1: string, file2: string): number;
7326
7473
 
@@ -7334,6 +7481,7 @@ export namespace Guestfs {
7334
7481
  * `guestfs_session_stat()`.
7335
7482
  * @param path
7336
7483
  * @returns the returned value, or -1 on error
7484
+ * @since 0.8
7337
7485
  */
7338
7486
  exists(path: string): number;
7339
7487
 
@@ -7364,6 +7512,7 @@ export namespace Guestfs {
7364
7512
  * See also `guestfs_session_feature_available()`.
7365
7513
  * @param directory
7366
7514
  * @returns true on success, false on error
7515
+ * @since 1.21.27
7367
7516
  */
7368
7517
  extlinux(directory: string): boolean;
7369
7518
 
@@ -7377,6 +7526,7 @@ export namespace Guestfs {
7377
7526
  * See also `guestfs_session_feature_available()`.
7378
7527
  * @param device
7379
7528
  * @returns true on success, false on error
7529
+ * @since 1.39.3
7380
7530
  */
7381
7531
  f2fs_expand(device: string): boolean;
7382
7532
 
@@ -7391,6 +7541,8 @@ export namespace Guestfs {
7391
7541
  * @param path
7392
7542
  * @param len
7393
7543
  * @returns true on success, false on error
7544
+ * @since 1.0.66
7545
+ * @deprecated In new code, use `guestfs_session_fallocate64()` instead
7394
7546
  */
7395
7547
  fallocate(path: string, len: number): boolean;
7396
7548
 
@@ -7413,6 +7565,7 @@ export namespace Guestfs {
7413
7565
  * @param path
7414
7566
  * @param len
7415
7567
  * @returns true on success, false on error
7568
+ * @since 1.3.17
7416
7569
  */
7417
7570
  fallocate64(path: string, len: bigint | number): boolean;
7418
7571
 
@@ -7425,6 +7578,7 @@ export namespace Guestfs {
7425
7578
  * `guestfs_session_available()`.
7426
7579
  * @param groups an array of strings
7427
7580
  * @returns the returned value, or -1 on error
7581
+ * @since 1.21.26
7428
7582
  */
7429
7583
  feature_available(groups: string[]): number;
7430
7584
 
@@ -7435,6 +7589,8 @@ export namespace Guestfs {
7435
7589
  * @param pattern
7436
7590
  * @param path
7437
7591
  * @returns an array of returned strings, or NULL on error
7592
+ * @since 1.0.66
7593
+ * @deprecated In new code, use `guestfs_session_grep()` instead
7438
7594
  */
7439
7595
  fgrep(pattern: string, path: string): string[];
7440
7596
 
@@ -7446,6 +7602,8 @@ export namespace Guestfs {
7446
7602
  * @param pattern
7447
7603
  * @param path
7448
7604
  * @returns an array of returned strings, or NULL on error
7605
+ * @since 1.0.66
7606
+ * @deprecated In new code, use `guestfs_session_grep()` instead
7449
7607
  */
7450
7608
  fgrepi(pattern: string, path: string): string[];
7451
7609
 
@@ -7470,6 +7628,7 @@ export namespace Guestfs {
7470
7628
  * `guestfs_session_is_zero()`.
7471
7629
  * @param path
7472
7630
  * @returns the returned string, or NULL on error
7631
+ * @since 1.9.1
7473
7632
  */
7474
7633
  file(path: string): string;
7475
7634
 
@@ -7560,6 +7719,7 @@ export namespace Guestfs {
7560
7719
  * associated initrd or kernel module(s) instead.
7561
7720
  * @param filename
7562
7721
  * @returns the returned string, or NULL on error
7722
+ * @since 1.5.3
7563
7723
  */
7564
7724
  file_architecture(filename: string): string;
7565
7725
 
@@ -7574,6 +7734,7 @@ export namespace Guestfs {
7574
7734
  * `guestfs_session_blockdev_getsize64()`.
7575
7735
  * @param file
7576
7736
  * @returns the returned value, or -1 on error
7737
+ * @since 1.0.82
7577
7738
  */
7578
7739
  filesize(file: string): number;
7579
7740
 
@@ -7595,6 +7756,7 @@ export namespace Guestfs {
7595
7756
  * `guestfs_session_feature_available()`, "AVAILABILITY" in guestfs(3).
7596
7757
  * @param filesystem
7597
7758
  * @returns the returned value, or -1 on error
7759
+ * @since 1.19.5
7598
7760
  */
7599
7761
  filesystem_available(filesystem: string): number;
7600
7762
 
@@ -7696,6 +7858,7 @@ export namespace Guestfs {
7696
7858
  * @param device
7697
7859
  * @param cancellable A GCancellable object
7698
7860
  * @returns an array of TSKDirent objects, or NULL on error
7861
+ * @since 1.33.39
7699
7862
  */
7700
7863
  filesystem_walk(device: string, cancellable: Gio.Cancellable | null): TSKDirent[];
7701
7864
 
@@ -7713,6 +7876,7 @@ export namespace Guestfs {
7713
7876
  * @param len
7714
7877
  * @param path
7715
7878
  * @returns true on success, false on error
7879
+ * @since 1.0.79
7716
7880
  */
7717
7881
  fill(c: number, len: number, path: string): boolean;
7718
7882
 
@@ -7725,6 +7889,7 @@ export namespace Guestfs {
7725
7889
  * @param dir
7726
7890
  * @param nr
7727
7891
  * @returns true on success, false on error
7892
+ * @since 1.19.32
7728
7893
  */
7729
7894
  fill_dir(dir: string, nr: number): boolean;
7730
7895
 
@@ -7739,6 +7904,7 @@ export namespace Guestfs {
7739
7904
  * @param len
7740
7905
  * @param path
7741
7906
  * @returns true on success, false on error
7907
+ * @since 1.3.12
7742
7908
  */
7743
7909
  fill_pattern(pattern: string, len: number, path: string): boolean;
7744
7910
 
@@ -7775,6 +7941,7 @@ export namespace Guestfs {
7775
7941
  * The returned list is sorted.
7776
7942
  * @param directory
7777
7943
  * @returns an array of returned strings, or NULL on error
7944
+ * @since 1.0.27
7778
7945
  */
7779
7946
  find(directory: string): string[];
7780
7947
 
@@ -7798,6 +7965,7 @@ export namespace Guestfs {
7798
7965
  * @param files
7799
7966
  * @param cancellable A GCancellable object
7800
7967
  * @returns true on success, false on error
7968
+ * @since 1.0.74
7801
7969
  */
7802
7970
  find0(directory: string, files: string, cancellable: Gio.Cancellable | null): boolean;
7803
7971
 
@@ -7815,6 +7983,7 @@ export namespace Guestfs {
7815
7983
  * @param inode
7816
7984
  * @param cancellable A GCancellable object
7817
7985
  * @returns an array of TSKDirent objects, or NULL on error
7986
+ * @since 1.35.6
7818
7987
  */
7819
7988
  find_inode(device: string, inode: bigint | number, cancellable: Gio.Cancellable | null): TSKDirent[];
7820
7989
 
@@ -7827,6 +7996,7 @@ export namespace Guestfs {
7827
7996
  * To find the label of a filesystem, use `guestfs_session_vfs_label()`.
7828
7997
  * @param label
7829
7998
  * @returns the returned string, or NULL on error
7999
+ * @since 1.5.3
7830
8000
  */
7831
8001
  findfs_label(label: string): string;
7832
8002
 
@@ -7839,6 +8009,7 @@ export namespace Guestfs {
7839
8009
  * To find the UUID of a filesystem, use `guestfs_session_vfs_uuid()`.
7840
8010
  * @param uuid
7841
8011
  * @returns the returned string, or NULL on error
8012
+ * @since 1.5.3
7842
8013
  */
7843
8014
  findfs_uuid(uuid: string): string;
7844
8015
 
@@ -7865,6 +8036,7 @@ export namespace Guestfs {
7865
8036
  * @param fstype
7866
8037
  * @param device
7867
8038
  * @returns the returned value, or -1 on error
8039
+ * @since 1.0.16
7868
8040
  */
7869
8041
  fsck(fstype: string, device: string): number;
7870
8042
 
@@ -7897,6 +8069,7 @@ export namespace Guestfs {
7897
8069
  * @param mountpoint
7898
8070
  * @param optargs a GuestfsFstrim containing optional arguments
7899
8071
  * @returns true on success, false on error
8072
+ * @since 1.19.6
7900
8073
  */
7901
8074
  fstrim(mountpoint: string, optargs: Fstrim | null): boolean;
7902
8075
 
@@ -7908,6 +8081,7 @@ export namespace Guestfs {
7908
8081
  *
7909
8082
  * If `NULL` then no options are added.
7910
8083
  * @returns the returned string. Note that NULL does not indicate error
8084
+ * @since 1.0.26
7911
8085
  */
7912
8086
  get_append(): string;
7913
8087
 
@@ -7918,6 +8092,8 @@ export namespace Guestfs {
7918
8092
  *
7919
8093
  * See `guestfs_session_set_backend()` and "BACKEND" in guestfs(3).
7920
8094
  * @returns the returned string, or NULL on error
8095
+ * @since 1.9.8
8096
+ * @deprecated In new code, use `guestfs_session_get_backend()` instead
7921
8097
  */
7922
8098
  get_attach_method(): string;
7923
8099
 
@@ -7926,6 +8102,7 @@ export namespace Guestfs {
7926
8102
  *
7927
8103
  * Get the autosync flag.
7928
8104
  * @returns the returned value, or -1 on error
8105
+ * @since 0.3
7929
8106
  */
7930
8107
  get_autosync(): number;
7931
8108
 
@@ -7938,6 +8115,7 @@ export namespace Guestfs {
7938
8115
  *
7939
8116
  * See `guestfs_session_set_backend()` and "BACKEND" in guestfs(3).
7940
8117
  * @returns the returned string, or NULL on error
8118
+ * @since 1.21.26
7941
8119
  */
7942
8120
  get_backend(): string;
7943
8121
 
@@ -7954,6 +8132,7 @@ export namespace Guestfs {
7954
8132
  * See "BACKEND" in guestfs(3), "BACKEND SETTINGS" in guestfs(3).
7955
8133
  * @param name
7956
8134
  * @returns the returned string, or NULL on error
8135
+ * @since 1.27.2
7957
8136
  */
7958
8137
  get_backend_setting(name: string): string;
7959
8138
 
@@ -7967,6 +8146,7 @@ export namespace Guestfs {
7967
8146
  *
7968
8147
  * See "BACKEND" in guestfs(3), "BACKEND SETTINGS" in guestfs(3).
7969
8148
  * @returns an array of returned strings, or NULL on error
8149
+ * @since 1.25.24
7970
8150
  */
7971
8151
  get_backend_settings(): string[];
7972
8152
 
@@ -7975,6 +8155,7 @@ export namespace Guestfs {
7975
8155
  *
7976
8156
  * Get the directory used by the handle to store the appliance cache.
7977
8157
  * @returns the returned string, or NULL on error
8158
+ * @since 1.19.58
7978
8159
  */
7979
8160
  get_cachedir(): string;
7980
8161
 
@@ -7983,6 +8164,8 @@ export namespace Guestfs {
7983
8164
  *
7984
8165
  * Return the direct appliance mode flag.
7985
8166
  * @returns the returned value, or -1 on error
8167
+ * @since 1.0.72
8168
+ * @deprecated In new code, use `guestfs_session_internal_get_console_socket()` instead
7986
8169
  */
7987
8170
  get_direct(): number;
7988
8171
 
@@ -8056,6 +8239,7 @@ export namespace Guestfs {
8056
8239
  * `guestfs_session_getxattr()`).
8057
8240
  * @param file
8058
8241
  * @returns the returned string, or NULL on error
8242
+ * @since 1.17.31
8059
8243
  */
8060
8244
  get_e2attrs(file: string): string;
8061
8245
 
@@ -8073,6 +8257,7 @@ export namespace Guestfs {
8073
8257
  * See `guestfs_session_set_e2generation()`.
8074
8258
  * @param file
8075
8259
  * @returns the returned value, or -1 on error
8260
+ * @since 1.17.31
8076
8261
  */
8077
8262
  get_e2generation(file: string): number;
8078
8263
 
@@ -8082,6 +8267,8 @@ export namespace Guestfs {
8082
8267
  * This returns the ext2/3/4 filesystem label of the filesystem on `device`.
8083
8268
  * @param device
8084
8269
  * @returns the returned string, or NULL on error
8270
+ * @since 1.0.15
8271
+ * @deprecated In new code, use `guestfs_session_vfs_label()` instead
8085
8272
  */
8086
8273
  get_e2label(device: string): string;
8087
8274
 
@@ -8091,6 +8278,8 @@ export namespace Guestfs {
8091
8278
  * This returns the ext2/3/4 filesystem UUID of the filesystem on `device`.
8092
8279
  * @param device
8093
8280
  * @returns the returned string, or NULL on error
8281
+ * @since 1.0.15
8282
+ * @deprecated In new code, use `guestfs_session_vfs_uuid()` instead
8094
8283
  */
8095
8284
  get_e2uuid(device: string): string;
8096
8285
 
@@ -8102,6 +8291,7 @@ export namespace Guestfs {
8102
8291
  * This is always non-NULL. If it wasn't set already, then this will return
8103
8292
  * the default qemu binary name.
8104
8293
  * @returns the returned string, or NULL on error
8294
+ * @since 1.23.17
8105
8295
  */
8106
8296
  get_hv(): string;
8107
8297
 
@@ -8110,6 +8300,7 @@ export namespace Guestfs {
8110
8300
  *
8111
8301
  * Get the handle identifier. See `guestfs_session_set_identifier()`.
8112
8302
  * @returns the returned string, or NULL on error
8303
+ * @since 1.31.14
8113
8304
  */
8114
8305
  get_identifier(): string;
8115
8306
 
@@ -8124,6 +8315,7 @@ export namespace Guestfs {
8124
8315
  * code.
8125
8316
  * @param index
8126
8317
  * @returns the returned string, or NULL on error
8318
+ * @since 1.19.52
8127
8319
  */
8128
8320
  get_libvirt_requested_credential_challenge(index: number): string;
8129
8321
 
@@ -8138,6 +8330,7 @@ export namespace Guestfs {
8138
8330
  * code.
8139
8331
  * @param index
8140
8332
  * @returns the returned string, or NULL on error
8333
+ * @since 1.19.52
8141
8334
  */
8142
8335
  get_libvirt_requested_credential_defresult(index: number): string;
8143
8336
 
@@ -8152,6 +8345,7 @@ export namespace Guestfs {
8152
8345
  * code.
8153
8346
  * @param index
8154
8347
  * @returns the returned string, or NULL on error
8348
+ * @since 1.19.52
8155
8349
  */
8156
8350
  get_libvirt_requested_credential_prompt(index: number): string;
8157
8351
 
@@ -8168,6 +8362,7 @@ export namespace Guestfs {
8168
8362
  * See "LIBVIRT AUTHENTICATION" in guestfs(3) for documentation and example
8169
8363
  * code.
8170
8364
  * @returns an array of returned strings, or NULL on error
8365
+ * @since 1.19.52
8171
8366
  */
8172
8367
  get_libvirt_requested_credentials(): string[];
8173
8368
 
@@ -8182,6 +8377,7 @@ export namespace Guestfs {
8182
8377
  *
8183
8378
  * For more information on the architecture of libguestfs, see guestfs(3).
8184
8379
  * @returns the returned value, or -1 on error
8380
+ * @since 1.0.55
8185
8381
  */
8186
8382
  get_memsize(): number;
8187
8383
 
@@ -8190,6 +8386,7 @@ export namespace Guestfs {
8190
8386
  *
8191
8387
  * This returns the enable network flag.
8192
8388
  * @returns the returned value, or -1 on error
8389
+ * @since 1.5.4
8193
8390
  */
8194
8391
  get_network(): number;
8195
8392
 
@@ -8201,6 +8398,7 @@ export namespace Guestfs {
8201
8398
  * This is always non-NULL. If it wasn't set already, then this will return
8202
8399
  * the default path.
8203
8400
  * @returns the returned string, or NULL on error
8401
+ * @since 0.3
8204
8402
  */
8205
8403
  get_path(): string;
8206
8404
 
@@ -8209,6 +8407,7 @@ export namespace Guestfs {
8209
8407
  *
8210
8408
  * This returns the process group flag.
8211
8409
  * @returns the returned value, or -1 on error
8410
+ * @since 1.11.18
8212
8411
  */
8213
8412
  get_pgroup(): number;
8214
8413
 
@@ -8220,6 +8419,7 @@ export namespace Guestfs {
8220
8419
  *
8221
8420
  * This is an internal call used for debugging and testing.
8222
8421
  * @returns the returned value, or -1 on error
8422
+ * @since 1.0.56
8223
8423
  */
8224
8424
  get_pid(): number;
8225
8425
 
@@ -8228,6 +8428,7 @@ export namespace Guestfs {
8228
8428
  *
8229
8429
  * Get the program name. See `guestfs_session_set_program()`.
8230
8430
  * @returns the returned string, or NULL on error
8431
+ * @since 1.21.29
8231
8432
  */
8232
8433
  get_program(): string;
8233
8434
 
@@ -8239,6 +8440,8 @@ export namespace Guestfs {
8239
8440
  * This is always non-NULL. If it wasn't set already, then this will return
8240
8441
  * the default qemu binary name.
8241
8442
  * @returns the returned string, or NULL on error
8443
+ * @since 1.0.6
8444
+ * @deprecated In new code, use `guestfs_session_get_hv()` instead
8242
8445
  */
8243
8446
  get_qemu(): string;
8244
8447
 
@@ -8247,6 +8450,7 @@ export namespace Guestfs {
8247
8450
  *
8248
8451
  * Return the recovery process enabled flag.
8249
8452
  * @returns the returned value, or -1 on error
8453
+ * @since 1.0.77
8250
8454
  */
8251
8455
  get_recovery_proc(): number;
8252
8456
 
@@ -8258,6 +8462,8 @@ export namespace Guestfs {
8258
8462
  *
8259
8463
  * For more information on the architecture of libguestfs, see guestfs(3).
8260
8464
  * @returns the returned value, or -1 on error
8465
+ * @since 1.0.67
8466
+ * @deprecated In new code, use `guestfs_session_selinux_relabel()` instead
8261
8467
  */
8262
8468
  get_selinux(): number;
8263
8469
 
@@ -8266,6 +8472,7 @@ export namespace Guestfs {
8266
8472
  *
8267
8473
  * This returns the number of virtual CPUs assigned to the appliance.
8268
8474
  * @returns the returned value, or -1 on error
8475
+ * @since 1.13.15
8269
8476
  */
8270
8477
  get_smp(): number;
8271
8478
 
@@ -8282,6 +8489,7 @@ export namespace Guestfs {
8282
8489
  * `XDG_RUNTIME_DIR` is set, then that is the default. Else /tmp is the
8283
8490
  * default.
8284
8491
  * @returns the returned string, or NULL on error
8492
+ * @since 1.33.8
8285
8493
  */
8286
8494
  get_sockdir(): string;
8287
8495
 
@@ -8293,6 +8501,7 @@ export namespace Guestfs {
8293
8501
  *
8294
8502
  * For more information on states, see guestfs(3).
8295
8503
  * @returns the returned value, or -1 on error
8504
+ * @since 1.0.2
8296
8505
  */
8297
8506
  get_state(): number;
8298
8507
 
@@ -8301,6 +8510,7 @@ export namespace Guestfs {
8301
8510
  *
8302
8511
  * Get the directory used by the handle to store temporary files.
8303
8512
  * @returns the returned string, or NULL on error
8513
+ * @since 1.19.58
8304
8514
  */
8305
8515
  get_tmpdir(): string;
8306
8516
 
@@ -8309,6 +8519,7 @@ export namespace Guestfs {
8309
8519
  *
8310
8520
  * Return the command trace flag.
8311
8521
  * @returns the returned value, or -1 on error
8522
+ * @since 1.0.69
8312
8523
  */
8313
8524
  get_trace(): number;
8314
8525
 
@@ -8318,6 +8529,7 @@ export namespace Guestfs {
8318
8529
  * Return the current umask. By default the umask is @022 unless it has
8319
8530
  * been set by calling `guestfs_session_umask()`.
8320
8531
  * @returns the returned value, or -1 on error
8532
+ * @since 1.3.4
8321
8533
  */
8322
8534
  get_umask(): number;
8323
8535
 
@@ -8326,6 +8538,7 @@ export namespace Guestfs {
8326
8538
  *
8327
8539
  * This returns the verbose messages flag.
8328
8540
  * @returns the returned value, or -1 on error
8541
+ * @since 0.3
8329
8542
  */
8330
8543
  get_verbose(): number;
8331
8544
 
@@ -8340,6 +8553,8 @@ export namespace Guestfs {
8340
8553
  * This function depends on the feature "selinux".
8341
8554
  * See also `guestfs_session_feature_available()`.
8342
8555
  * @returns the returned string, or NULL on error
8556
+ * @since 1.0.67
8557
+ * @deprecated In new code, use `guestfs_session_selinux_relabel()` instead
8343
8558
  */
8344
8559
  getcon(): string;
8345
8560
 
@@ -8368,6 +8583,7 @@ export namespace Guestfs {
8368
8583
  * @param path
8369
8584
  * @param name
8370
8585
  * @returns an array of binary data, or NULL on error
8586
+ * @since 1.7.24
8371
8587
  */
8372
8588
  getxattr(path: string, name: string): Uint8Array;
8373
8589
 
@@ -8385,6 +8601,7 @@ export namespace Guestfs {
8385
8601
  * See also `guestfs_session_feature_available()`.
8386
8602
  * @param path
8387
8603
  * @returns an array of XAttr objects, or NULL on error
8604
+ * @since 1.0.59
8388
8605
  */
8389
8606
  getxattrs(path: string): XAttr[];
8390
8607
 
@@ -8409,6 +8626,7 @@ export namespace Guestfs {
8409
8626
  * @param pattern
8410
8627
  * @param optargs a GuestfsGlobExpand containing optional arguments
8411
8628
  * @returns an array of returned strings, or NULL on error
8629
+ * @since 1.0.50
8412
8630
  */
8413
8631
  glob_expand(pattern: string, optargs: GlobExpand | null): string[];
8414
8632
 
@@ -8437,6 +8655,7 @@ export namespace Guestfs {
8437
8655
  * @param path
8438
8656
  * @param optargs a GuestfsGrep containing optional arguments
8439
8657
  * @returns an array of returned strings, or NULL on error
8658
+ * @since 1.0.66
8440
8659
  */
8441
8660
  grep(regex: string, path: string, optargs: Grep | null): string[];
8442
8661
 
@@ -8448,6 +8667,8 @@ export namespace Guestfs {
8448
8667
  * @param regex
8449
8668
  * @param path
8450
8669
  * @returns an array of returned strings, or NULL on error
8670
+ * @since 1.0.66
8671
+ * @deprecated In new code, use `guestfs_session_grep()` instead
8451
8672
  */
8452
8673
  grepi(regex: string, path: string): string[];
8453
8674
 
@@ -8483,6 +8704,7 @@ export namespace Guestfs {
8483
8704
  * @param root
8484
8705
  * @param device
8485
8706
  * @returns true on success, false on error
8707
+ * @since 1.0.17
8486
8708
  */
8487
8709
  grub_install(root: string, device: string): boolean;
8488
8710
 
@@ -8493,6 +8715,7 @@ export namespace Guestfs {
8493
8715
  * strings.
8494
8716
  * @param path
8495
8717
  * @returns an array of returned strings, or NULL on error
8718
+ * @since 1.0.54
8496
8719
  */
8497
8720
  head(path: string): string[];
8498
8721
 
@@ -8509,6 +8732,7 @@ export namespace Guestfs {
8509
8732
  * @param nrlines
8510
8733
  * @param path
8511
8734
  * @returns an array of returned strings, or NULL on error
8735
+ * @since 1.0.54
8512
8736
  */
8513
8737
  head_n(nrlines: number, path: string): string[];
8514
8738
 
@@ -8519,6 +8743,7 @@ export namespace Guestfs {
8519
8743
  * human-readable, canonical hex dump of the file.
8520
8744
  * @param path
8521
8745
  * @returns the returned string, or NULL on error
8746
+ * @since 1.0.22
8522
8747
  */
8523
8748
  hexdump(path: string): string;
8524
8749
 
@@ -8532,6 +8757,7 @@ export namespace Guestfs {
8532
8757
  * This function depends on the feature "hivex".
8533
8758
  * See also `guestfs_session_feature_available()`.
8534
8759
  * @returns true on success, false on error
8760
+ * @since 1.19.35
8535
8761
  */
8536
8762
  hivex_close(): boolean;
8537
8763
 
@@ -8551,6 +8777,7 @@ export namespace Guestfs {
8551
8777
  * See also `guestfs_session_feature_available()`.
8552
8778
  * @param filename
8553
8779
  * @returns true on success, false on error
8780
+ * @since 1.19.35
8554
8781
  */
8555
8782
  hivex_commit(filename: string | null): boolean;
8556
8783
 
@@ -8566,6 +8793,7 @@ export namespace Guestfs {
8566
8793
  * @param parent
8567
8794
  * @param name
8568
8795
  * @returns the returned value, or -1 on error
8796
+ * @since 1.19.35
8569
8797
  */
8570
8798
  hivex_node_add_child(parent: bigint | number, name: string): number;
8571
8799
 
@@ -8580,6 +8808,7 @@ export namespace Guestfs {
8580
8808
  * See also `guestfs_session_feature_available()`.
8581
8809
  * @param nodeh
8582
8810
  * @returns an array of HivexNode objects, or NULL on error
8811
+ * @since 1.19.35
8583
8812
  */
8584
8813
  hivex_node_children(nodeh: bigint | number): HivexNode[];
8585
8814
 
@@ -8594,6 +8823,7 @@ export namespace Guestfs {
8594
8823
  * See also `guestfs_session_feature_available()`.
8595
8824
  * @param nodeh
8596
8825
  * @returns true on success, false on error
8826
+ * @since 1.19.35
8597
8827
  */
8598
8828
  hivex_node_delete_child(nodeh: bigint | number): boolean;
8599
8829
 
@@ -8610,6 +8840,7 @@ export namespace Guestfs {
8610
8840
  * @param nodeh
8611
8841
  * @param name
8612
8842
  * @returns the returned value, or -1 on error
8843
+ * @since 1.19.35
8613
8844
  */
8614
8845
  hivex_node_get_child(nodeh: bigint | number, name: string): number;
8615
8846
 
@@ -8626,6 +8857,7 @@ export namespace Guestfs {
8626
8857
  * @param nodeh
8627
8858
  * @param key
8628
8859
  * @returns the returned value, or -1 on error
8860
+ * @since 1.19.35
8629
8861
  */
8630
8862
  hivex_node_get_value(nodeh: bigint | number, key: string): number;
8631
8863
 
@@ -8640,6 +8872,7 @@ export namespace Guestfs {
8640
8872
  * See also `guestfs_session_feature_available()`.
8641
8873
  * @param nodeh
8642
8874
  * @returns the returned string, or NULL on error
8875
+ * @since 1.19.35
8643
8876
  */
8644
8877
  hivex_node_name(nodeh: bigint | number): string;
8645
8878
 
@@ -8654,6 +8887,7 @@ export namespace Guestfs {
8654
8887
  * See also `guestfs_session_feature_available()`.
8655
8888
  * @param nodeh
8656
8889
  * @returns the returned value, or -1 on error
8890
+ * @since 1.19.35
8657
8891
  */
8658
8892
  hivex_node_parent(nodeh: bigint | number): number;
8659
8893
 
@@ -8672,6 +8906,7 @@ export namespace Guestfs {
8672
8906
  * @param t
8673
8907
  * @param val an array of binary data
8674
8908
  * @returns true on success, false on error
8909
+ * @since 1.19.35
8675
8910
  */
8676
8911
  hivex_node_set_value(nodeh: bigint | number, key: string, t: bigint | number, val: Uint8Array | string): boolean;
8677
8912
 
@@ -8686,6 +8921,7 @@ export namespace Guestfs {
8686
8921
  * See also `guestfs_session_feature_available()`.
8687
8922
  * @param nodeh
8688
8923
  * @returns an array of HivexValue objects, or NULL on error
8924
+ * @since 1.19.35
8689
8925
  */
8690
8926
  hivex_node_values(nodeh: bigint | number): HivexValue[];
8691
8927
 
@@ -8703,6 +8939,7 @@ export namespace Guestfs {
8703
8939
  * @param filename
8704
8940
  * @param optargs a GuestfsHivexOpen containing optional arguments
8705
8941
  * @returns true on success, false on error
8942
+ * @since 1.19.35
8706
8943
  */
8707
8944
  hivex_open(filename: string, optargs: HivexOpen | null): boolean;
8708
8945
 
@@ -8716,6 +8953,7 @@ export namespace Guestfs {
8716
8953
  * This function depends on the feature "hivex".
8717
8954
  * See also `guestfs_session_feature_available()`.
8718
8955
  * @returns the returned value, or -1 on error
8956
+ * @since 1.19.35
8719
8957
  */
8720
8958
  hivex_root(): number;
8721
8959
 
@@ -8730,6 +8968,7 @@ export namespace Guestfs {
8730
8968
  * See also `guestfs_session_feature_available()`.
8731
8969
  * @param valueh
8732
8970
  * @returns the returned string, or NULL on error
8971
+ * @since 1.19.35
8733
8972
  */
8734
8973
  hivex_value_key(valueh: bigint | number): string;
8735
8974
 
@@ -8749,6 +8988,7 @@ export namespace Guestfs {
8749
8988
  * See also `guestfs_session_feature_available()`.
8750
8989
  * @param valueh
8751
8990
  * @returns the returned string, or NULL on error
8991
+ * @since 1.37.22
8752
8992
  */
8753
8993
  hivex_value_string(valueh: bigint | number): string;
8754
8994
 
@@ -8763,6 +9003,7 @@ export namespace Guestfs {
8763
9003
  * See also `guestfs_session_feature_available()`.
8764
9004
  * @param valueh
8765
9005
  * @returns the returned value, or -1 on error
9006
+ * @since 1.19.35
8766
9007
  */
8767
9008
  hivex_value_type(valueh: bigint | number): number;
8768
9009
 
@@ -8782,6 +9023,8 @@ export namespace Guestfs {
8782
9023
  * See also `guestfs_session_feature_available()`.
8783
9024
  * @param valueh
8784
9025
  * @returns the returned string, or NULL on error
9026
+ * @since 1.19.35
9027
+ * @deprecated In new code, use `guestfs_session_hivex_value_string()` instead
8785
9028
  */
8786
9029
  hivex_value_utf8(valueh: bigint | number): string;
8787
9030
 
@@ -8798,6 +9041,7 @@ export namespace Guestfs {
8798
9041
  * See also `guestfs_session_feature_available()`.
8799
9042
  * @param valueh
8800
9043
  * @returns an array of binary data, or NULL on error
9044
+ * @since 1.19.35
8801
9045
  */
8802
9046
  hivex_value_value(valueh: bigint | number): Uint8Array;
8803
9047
 
@@ -8818,6 +9062,7 @@ export namespace Guestfs {
8818
9062
  * @param initrdpath
8819
9063
  * @param filename
8820
9064
  * @returns an array of binary data, or NULL on error
9065
+ * @since 1.0.84
8821
9066
  */
8822
9067
  initrd_cat(initrdpath: string, filename: string): Uint8Array;
8823
9068
 
@@ -8835,6 +9080,7 @@ export namespace Guestfs {
8835
9080
  * files).
8836
9081
  * @param path
8837
9082
  * @returns an array of returned strings, or NULL on error
9083
+ * @since 1.0.54
8838
9084
  */
8839
9085
  initrd_list(path: string): string[];
8840
9086
 
@@ -8854,6 +9100,7 @@ export namespace Guestfs {
8854
9100
  * @param path
8855
9101
  * @param mask
8856
9102
  * @returns the returned value, or -1 on error
9103
+ * @since 1.0.66
8857
9104
  */
8858
9105
  inotify_add_watch(path: string, mask: number): number;
8859
9106
 
@@ -8867,6 +9114,7 @@ export namespace Guestfs {
8867
9114
  * This function depends on the feature "inotify".
8868
9115
  * See also `guestfs_session_feature_available()`.
8869
9116
  * @returns true on success, false on error
9117
+ * @since 1.0.66
8870
9118
  */
8871
9119
  inotify_close(): boolean;
8872
9120
 
@@ -8880,6 +9128,7 @@ export namespace Guestfs {
8880
9128
  * This function depends on the feature "inotify".
8881
9129
  * See also `guestfs_session_feature_available()`.
8882
9130
  * @returns an array of returned strings, or NULL on error
9131
+ * @since 1.0.66
8883
9132
  */
8884
9133
  inotify_files(): string[];
8885
9134
 
@@ -8920,6 +9169,7 @@ export namespace Guestfs {
8920
9169
  * See also `guestfs_session_feature_available()`.
8921
9170
  * @param maxevents
8922
9171
  * @returns true on success, false on error
9172
+ * @since 1.0.66
8923
9173
  */
8924
9174
  inotify_init(maxevents: number): boolean;
8925
9175
 
@@ -8939,6 +9189,7 @@ export namespace Guestfs {
8939
9189
  * This function depends on the feature "inotify".
8940
9190
  * See also `guestfs_session_feature_available()`.
8941
9191
  * @returns an array of INotifyEvent objects, or NULL on error
9192
+ * @since 1.0.66
8942
9193
  */
8943
9194
  inotify_read(): INotifyEvent[];
8944
9195
 
@@ -8952,6 +9203,7 @@ export namespace Guestfs {
8952
9203
  * See also `guestfs_session_feature_available()`.
8953
9204
  * @param wd
8954
9205
  * @returns true on success, false on error
9206
+ * @since 1.0.66
8955
9207
  */
8956
9208
  inotify_rm_watch(wd: number): boolean;
8957
9209
 
@@ -8968,6 +9220,7 @@ export namespace Guestfs {
8968
9220
  * Please read "INSPECTION" in guestfs(3) for more details.
8969
9221
  * @param root
8970
9222
  * @returns the returned string, or NULL on error
9223
+ * @since 1.5.3
8971
9224
  */
8972
9225
  inspect_get_arch(root: string): string;
8973
9226
 
@@ -9097,6 +9350,7 @@ export namespace Guestfs {
9097
9350
  * Please read "INSPECTION" in guestfs(3) for more details.
9098
9351
  * @param root
9099
9352
  * @returns the returned string, or NULL on error
9353
+ * @since 1.5.3
9100
9354
  */
9101
9355
  inspect_get_distro(root: string): string;
9102
9356
 
@@ -9135,6 +9389,7 @@ export namespace Guestfs {
9135
9389
  * `guestfs_session_inspect_get_filesystems()`.
9136
9390
  * @param root
9137
9391
  * @returns a GHashTable of results, or NULL on error
9392
+ * @since 1.9.17
9138
9393
  */
9139
9394
  inspect_get_drive_mappings(root: string): { [key: string]: string };
9140
9395
 
@@ -9152,6 +9407,7 @@ export namespace Guestfs {
9152
9407
  * `guestfs_session_inspect_get_mountpoints()`.
9153
9408
  * @param root
9154
9409
  * @returns an array of returned strings, or NULL on error
9410
+ * @since 1.5.3
9155
9411
  */
9156
9412
  inspect_get_filesystems(root: string): string[];
9157
9413
 
@@ -9177,6 +9433,8 @@ export namespace Guestfs {
9177
9433
  * Please read "INSPECTION" in guestfs(3) for more details.
9178
9434
  * @param root
9179
9435
  * @returns the returned string, or NULL on error
9436
+ * @since 1.9.4
9437
+ * @deprecated There is no documented replacement
9180
9438
  */
9181
9439
  inspect_get_format(root: string): string;
9182
9440
 
@@ -9192,6 +9450,7 @@ export namespace Guestfs {
9192
9450
  * Please read "INSPECTION" in guestfs(3) for more details.
9193
9451
  * @param root
9194
9452
  * @returns the returned string, or NULL on error
9453
+ * @since 1.7.9
9195
9454
  */
9196
9455
  inspect_get_hostname(root: string): string;
9197
9456
 
@@ -9243,6 +9502,7 @@ export namespace Guestfs {
9243
9502
  * @param root
9244
9503
  * @param optargs a GuestfsInspectGetIcon containing optional arguments
9245
9504
  * @returns an array of binary data, or NULL on error
9505
+ * @since 1.11.12
9246
9506
  */
9247
9507
  inspect_get_icon(root: string, optargs: InspectGetIcon | null): Uint8Array;
9248
9508
 
@@ -9262,6 +9522,7 @@ export namespace Guestfs {
9262
9522
  * Please read "INSPECTION" in guestfs(3) for more details.
9263
9523
  * @param root
9264
9524
  * @returns the returned value, or -1 on error
9525
+ * @since 1.5.3
9265
9526
  */
9266
9527
  inspect_get_major_version(root: string): number;
9267
9528
 
@@ -9276,6 +9537,7 @@ export namespace Guestfs {
9276
9537
  * `guestfs_session_inspect_get_major_version()`.
9277
9538
  * @param root
9278
9539
  * @returns the returned value, or -1 on error
9540
+ * @since 1.5.3
9279
9541
  */
9280
9542
  inspect_get_minor_version(root: string): number;
9281
9543
 
@@ -9305,6 +9567,7 @@ export namespace Guestfs {
9305
9567
  * `guestfs_session_inspect_get_filesystems()`.
9306
9568
  * @param root
9307
9569
  * @returns a GHashTable of results, or NULL on error
9570
+ * @since 1.5.3
9308
9571
  */
9309
9572
  inspect_get_mountpoints(root: string): { [key: string]: string };
9310
9573
 
@@ -9320,6 +9583,7 @@ export namespace Guestfs {
9320
9583
  * If no ID could not be determined, then the string `unknown` is returned.
9321
9584
  * @param root
9322
9585
  * @returns the returned string, or NULL on error
9586
+ * @since 1.39.1
9323
9587
  */
9324
9588
  inspect_get_osinfo(root: string): string;
9325
9589
 
@@ -9341,6 +9605,7 @@ export namespace Guestfs {
9341
9605
  * Please read "INSPECTION" in guestfs(3) for more details.
9342
9606
  * @param root
9343
9607
  * @returns the returned string, or NULL on error
9608
+ * @since 1.7.5
9344
9609
  */
9345
9610
  inspect_get_package_format(root: string): string;
9346
9611
 
@@ -9363,6 +9628,7 @@ export namespace Guestfs {
9363
9628
  * Please read "INSPECTION" in guestfs(3) for more details.
9364
9629
  * @param root
9365
9630
  * @returns the returned string, or NULL on error
9631
+ * @since 1.7.5
9366
9632
  */
9367
9633
  inspect_get_package_management(root: string): string;
9368
9634
 
@@ -9379,6 +9645,7 @@ export namespace Guestfs {
9379
9645
  * Please read "INSPECTION" in guestfs(3) for more details.
9380
9646
  * @param root
9381
9647
  * @returns the returned string, or NULL on error
9648
+ * @since 1.5.3
9382
9649
  */
9383
9650
  inspect_get_product_name(root: string): string;
9384
9651
 
@@ -9407,6 +9674,7 @@ export namespace Guestfs {
9407
9674
  * `guestfs_session_inspect_get_major_version()`.
9408
9675
  * @param root
9409
9676
  * @returns the returned string, or NULL on error
9677
+ * @since 1.9.13
9410
9678
  */
9411
9679
  inspect_get_product_variant(root: string): string;
9412
9680
 
@@ -9422,6 +9690,7 @@ export namespace Guestfs {
9422
9690
  *
9423
9691
  * Please read "INSPECTION" in guestfs(3) for more details.
9424
9692
  * @returns an array of returned strings, or NULL on error
9693
+ * @since 1.7.3
9425
9694
  */
9426
9695
  inspect_get_roots(): string[];
9427
9696
 
@@ -9464,6 +9733,7 @@ export namespace Guestfs {
9464
9733
  * Please read "INSPECTION" in guestfs(3) for more details.
9465
9734
  * @param root
9466
9735
  * @returns the returned string, or NULL on error
9736
+ * @since 1.5.3
9467
9737
  */
9468
9738
  inspect_get_type(root: string): string;
9469
9739
 
@@ -9480,6 +9750,7 @@ export namespace Guestfs {
9480
9750
  * Please read "INSPECTION" in guestfs(3) for more details.
9481
9751
  * @param root
9482
9752
  * @returns the returned string, or NULL on error
9753
+ * @since 1.9.17
9483
9754
  */
9484
9755
  inspect_get_windows_current_control_set(root: string): string;
9485
9756
 
@@ -9499,6 +9770,7 @@ export namespace Guestfs {
9499
9770
  * Please read "INSPECTION" in guestfs(3) for more details.
9500
9771
  * @param root
9501
9772
  * @returns the returned string, or NULL on error
9773
+ * @since 1.35.26
9502
9774
  */
9503
9775
  inspect_get_windows_software_hive(root: string): string;
9504
9776
 
@@ -9518,6 +9790,7 @@ export namespace Guestfs {
9518
9790
  * Please read "INSPECTION" in guestfs(3) for more details.
9519
9791
  * @param root
9520
9792
  * @returns the returned string, or NULL on error
9793
+ * @since 1.35.26
9521
9794
  */
9522
9795
  inspect_get_windows_system_hive(root: string): string;
9523
9796
 
@@ -9534,6 +9807,7 @@ export namespace Guestfs {
9534
9807
  * Please read "INSPECTION" in guestfs(3) for more details.
9535
9808
  * @param root
9536
9809
  * @returns the returned string, or NULL on error
9810
+ * @since 1.5.25
9537
9811
  */
9538
9812
  inspect_get_windows_systemroot(root: string): string;
9539
9813
 
@@ -9545,6 +9819,8 @@ export namespace Guestfs {
9545
9819
  * Please read "INSPECTION" in guestfs(3) for more details.
9546
9820
  * @param root
9547
9821
  * @returns the returned value, or -1 on error
9822
+ * @since 1.9.4
9823
+ * @deprecated There is no documented replacement
9548
9824
  */
9549
9825
  inspect_is_live(root: string): number;
9550
9826
 
@@ -9556,6 +9832,8 @@ export namespace Guestfs {
9556
9832
  * Please read "INSPECTION" in guestfs(3) for more details.
9557
9833
  * @param root
9558
9834
  * @returns the returned value, or -1 on error
9835
+ * @since 1.9.4
9836
+ * @deprecated There is no documented replacement
9559
9837
  */
9560
9838
  inspect_is_multipart(root: string): number;
9561
9839
 
@@ -9567,6 +9845,8 @@ export namespace Guestfs {
9567
9845
  * Please read "INSPECTION" in guestfs(3) for more details.
9568
9846
  * @param root
9569
9847
  * @returns the returned value, or -1 on error
9848
+ * @since 1.9.4
9849
+ * @deprecated There is no documented replacement
9570
9850
  */
9571
9851
  inspect_is_netinst(root: string): number;
9572
9852
 
@@ -9648,6 +9928,8 @@ export namespace Guestfs {
9648
9928
  * Please read "INSPECTION" in guestfs(3) for more details.
9649
9929
  * @param root
9650
9930
  * @returns an array of Application objects, or NULL on error
9931
+ * @since 1.7.8
9932
+ * @deprecated In new code, use `guestfs_session_inspect_list_applications2()` instead
9651
9933
  */
9652
9934
  inspect_list_applications(root: string): Application[];
9653
9935
 
@@ -9734,6 +10016,7 @@ export namespace Guestfs {
9734
10016
  * Please read "INSPECTION" in guestfs(3) for more details.
9735
10017
  * @param root
9736
10018
  * @returns an array of Application2 objects, or NULL on error
10019
+ * @since 1.19.56
9737
10020
  */
9738
10021
  inspect_list_applications2(root: string): Application2[];
9739
10022
 
@@ -9770,6 +10053,7 @@ export namespace Guestfs {
9770
10053
  *
9771
10054
  * See also `guestfs_session_list_filesystems()`.
9772
10055
  * @returns an array of returned strings, or NULL on error
10056
+ * @since 1.5.3
9773
10057
  */
9774
10058
  inspect_os(): string[];
9775
10059
 
@@ -9779,6 +10063,7 @@ export namespace Guestfs {
9779
10063
  * This function is used internally when testing the appliance.
9780
10064
  * @param cancellable A GCancellable object
9781
10065
  * @returns true on success, false on error
10066
+ * @since 1.23.30
9782
10067
  */
9783
10068
  internal_exit(cancellable: Gio.Cancellable | null): boolean;
9784
10069
 
@@ -10210,6 +10495,7 @@ export namespace Guestfs {
10210
10495
  * @param path
10211
10496
  * @param optargs a GuestfsIsBlockdev containing optional arguments
10212
10497
  * @returns the returned value, or -1 on error
10498
+ * @since 1.5.10
10213
10499
  */
10214
10500
  is_blockdev(path: string, optargs: IsBlockdev | null): number;
10215
10501
 
@@ -10221,6 +10507,7 @@ export namespace Guestfs {
10221
10507
  *
10222
10508
  * For more information on states, see guestfs(3).
10223
10509
  * @returns the returned value, or -1 on error
10510
+ * @since 1.0.2
10224
10511
  */
10225
10512
  is_busy(): number;
10226
10513
 
@@ -10238,6 +10525,7 @@ export namespace Guestfs {
10238
10525
  * @param path
10239
10526
  * @param optargs a GuestfsIsChardev containing optional arguments
10240
10527
  * @returns the returned value, or -1 on error
10528
+ * @since 1.5.10
10241
10529
  */
10242
10530
  is_chardev(path: string, optargs: IsChardev | null): number;
10243
10531
 
@@ -10249,6 +10537,7 @@ export namespace Guestfs {
10249
10537
  *
10250
10538
  * For more information on states, see guestfs(3).
10251
10539
  * @returns the returned value, or -1 on error
10540
+ * @since 1.0.2
10252
10541
  */
10253
10542
  is_config(): number;
10254
10543
 
@@ -10266,6 +10555,7 @@ export namespace Guestfs {
10266
10555
  * @param path
10267
10556
  * @param optargs a GuestfsIsDir containing optional arguments
10268
10557
  * @returns the returned value, or -1 on error
10558
+ * @since 0.8
10269
10559
  */
10270
10560
  is_dir(path: string, optargs: IsDir | null): number;
10271
10561
 
@@ -10283,6 +10573,7 @@ export namespace Guestfs {
10283
10573
  * @param path
10284
10574
  * @param optargs a GuestfsIsFifo containing optional arguments
10285
10575
  * @returns the returned value, or -1 on error
10576
+ * @since 1.5.10
10286
10577
  */
10287
10578
  is_fifo(path: string, optargs: IsFifo | null): number;
10288
10579
 
@@ -10301,6 +10592,7 @@ export namespace Guestfs {
10301
10592
  * @param path
10302
10593
  * @param optargs a GuestfsIsFile containing optional arguments
10303
10594
  * @returns the returned value, or -1 on error
10595
+ * @since 0.8
10304
10596
  */
10305
10597
  is_file(path: string, optargs: IsFile | null): number;
10306
10598
 
@@ -10312,6 +10604,7 @@ export namespace Guestfs {
10312
10604
  *
10313
10605
  * For more information on states, see guestfs(3).
10314
10606
  * @returns the returned value, or -1 on error
10607
+ * @since 1.0.2
10315
10608
  */
10316
10609
  is_launching(): number;
10317
10610
 
@@ -10322,6 +10615,7 @@ export namespace Guestfs {
10322
10615
  * true iff this is the case.
10323
10616
  * @param mountable
10324
10617
  * @returns the returned value, or -1 on error
10618
+ * @since 1.5.3
10325
10619
  */
10326
10620
  is_lv(mountable: string): number;
10327
10621
 
@@ -10333,6 +10627,7 @@ export namespace Guestfs {
10333
10627
  *
10334
10628
  * For more information on states, see guestfs(3).
10335
10629
  * @returns the returned value, or -1 on error
10630
+ * @since 1.0.2
10336
10631
  */
10337
10632
  is_ready(): number;
10338
10633
 
@@ -10350,6 +10645,7 @@ export namespace Guestfs {
10350
10645
  * @param path
10351
10646
  * @param optargs a GuestfsIsSocket containing optional arguments
10352
10647
  * @returns the returned value, or -1 on error
10648
+ * @since 1.5.10
10353
10649
  */
10354
10650
  is_socket(path: string, optargs: IsSocket | null): number;
10355
10651
 
@@ -10362,6 +10658,7 @@ export namespace Guestfs {
10362
10658
  * See also `guestfs_session_stat()`.
10363
10659
  * @param path
10364
10660
  * @returns the returned value, or -1 on error
10661
+ * @since 1.5.10
10365
10662
  */
10366
10663
  is_symlink(path: string): number;
10367
10664
 
@@ -10372,6 +10669,7 @@ export namespace Guestfs {
10372
10669
  * device. That is, not a partition or a logical device.
10373
10670
  * @param device
10374
10671
  * @returns the returned value, or -1 on error
10672
+ * @since 1.21.9
10375
10673
  */
10376
10674
  is_whole_device(device: string): number;
10377
10675
 
@@ -10382,6 +10680,7 @@ export namespace Guestfs {
10382
10680
  * contains all zero bytes.
10383
10681
  * @param path
10384
10682
  * @returns the returned value, or -1 on error
10683
+ * @since 1.11.8
10385
10684
  */
10386
10685
  is_zero(path: string): number;
10387
10686
 
@@ -10393,6 +10692,7 @@ export namespace Guestfs {
10393
10692
  * Note that for large devices this can take a long time to run.
10394
10693
  * @param device
10395
10694
  * @returns the returned value, or -1 on error
10695
+ * @since 1.11.8
10396
10696
  */
10397
10697
  is_zero_device(device: string): number;
10398
10698
 
@@ -10406,6 +10706,7 @@ export namespace Guestfs {
10406
10706
  * `guestfs_session_isoinfo_device()`.
10407
10707
  * @param isofile
10408
10708
  * @returns a ISOInfo object, or NULL on error
10709
+ * @since 1.17.19
10409
10710
  */
10410
10711
  isoinfo(isofile: string): ISOInfo;
10411
10712
 
@@ -10425,6 +10726,7 @@ export namespace Guestfs {
10425
10726
  * http://wiki.osdev.org/ISO_9660#The_Primary_Volume_Descriptor </ulink>
10426
10727
  * @param device
10427
10728
  * @returns a ISOInfo object, or NULL on error
10729
+ * @since 1.17.19
10428
10730
  */
10429
10731
  isoinfo_device(device: string): ISOInfo;
10430
10732
 
@@ -10436,6 +10738,7 @@ export namespace Guestfs {
10436
10738
  * This function depends on the feature "journal".
10437
10739
  * See also `guestfs_session_feature_available()`.
10438
10740
  * @returns true on success, false on error
10741
+ * @since 1.23.11
10439
10742
  */
10440
10743
  journal_close(): boolean;
10441
10744
 
@@ -10461,6 +10764,7 @@ export namespace Guestfs {
10461
10764
  * This function depends on the feature "journal".
10462
10765
  * See also `guestfs_session_feature_available()`.
10463
10766
  * @returns an array of XAttr objects, or NULL on error
10767
+ * @since 1.23.11
10464
10768
  */
10465
10769
  journal_get(): XAttr[];
10466
10770
 
@@ -10477,6 +10781,7 @@ export namespace Guestfs {
10477
10781
  * This function depends on the feature "journal".
10478
10782
  * See also `guestfs_session_feature_available()`.
10479
10783
  * @returns the returned value, or -1 on error
10784
+ * @since 1.23.11
10480
10785
  */
10481
10786
  journal_get_data_threshold(): number;
10482
10787
 
@@ -10488,6 +10793,7 @@ export namespace Guestfs {
10488
10793
  * This function depends on the feature "journal".
10489
10794
  * See also `guestfs_session_feature_available()`.
10490
10795
  * @returns the returned value, or -1 on error
10796
+ * @since 1.27.18
10491
10797
  */
10492
10798
  journal_get_realtime_usec(): number;
10493
10799
 
@@ -10505,6 +10811,7 @@ export namespace Guestfs {
10505
10811
  * This function depends on the feature "journal".
10506
10812
  * See also `guestfs_session_feature_available()`.
10507
10813
  * @returns the returned value, or -1 on error
10814
+ * @since 1.23.11
10508
10815
  */
10509
10816
  journal_next(): number;
10510
10817
 
@@ -10524,6 +10831,7 @@ export namespace Guestfs {
10524
10831
  * See also `guestfs_session_feature_available()`.
10525
10832
  * @param directory
10526
10833
  * @returns true on success, false on error
10834
+ * @since 1.23.11
10527
10835
  */
10528
10836
  journal_open(directory: string): boolean;
10529
10837
 
@@ -10541,6 +10849,7 @@ export namespace Guestfs {
10541
10849
  * See also `guestfs_session_feature_available()`.
10542
10850
  * @param threshold
10543
10851
  * @returns true on success, false on error
10852
+ * @since 1.23.11
10544
10853
  */
10545
10854
  journal_set_data_threshold(threshold: bigint | number): boolean;
10546
10855
 
@@ -10559,6 +10868,7 @@ export namespace Guestfs {
10559
10868
  * See also `guestfs_session_feature_available()`.
10560
10869
  * @param skip
10561
10870
  * @returns the returned value, or -1 on error
10871
+ * @since 1.23.11
10562
10872
  */
10563
10873
  journal_skip(skip: bigint | number): number;
10564
10874
 
@@ -10569,6 +10879,8 @@ export namespace Guestfs {
10569
10879
  *
10570
10880
  * Do not call this. See: `guestfs_session_shutdown()` instead.
10571
10881
  * @returns true on success, false on error
10882
+ * @since 0.3
10883
+ * @deprecated In new code, use `guestfs_session_shutdown()` instead
10572
10884
  */
10573
10885
  kill_subprocess(): boolean;
10574
10886
 
@@ -10583,6 +10895,7 @@ export namespace Guestfs {
10583
10895
  * behaviour when you do this is not well defined. Handles are very cheap
10584
10896
  * to create, so create a new one for each launch.
10585
10897
  * @returns true on success, false on error
10898
+ * @since 0.3
10586
10899
  */
10587
10900
  launch(): boolean;
10588
10901
 
@@ -10600,6 +10913,7 @@ export namespace Guestfs {
10600
10913
  * @param group
10601
10914
  * @param path
10602
10915
  * @returns true on success, false on error
10916
+ * @since 1.0.77
10603
10917
  */
10604
10918
  lchown(owner: number, group: number, path: string): boolean;
10605
10919
 
@@ -10620,6 +10934,7 @@ export namespace Guestfs {
10620
10934
  * This function depends on the feature "ldm".
10621
10935
  * See also `guestfs_session_feature_available()`.
10622
10936
  * @returns true on success, false on error
10937
+ * @since 1.20.0
10623
10938
  */
10624
10939
  ldmtool_create_all(): boolean;
10625
10940
 
@@ -10634,6 +10949,7 @@ export namespace Guestfs {
10634
10949
  * See also `guestfs_session_feature_available()`.
10635
10950
  * @param diskgroup
10636
10951
  * @returns an array of returned strings, or NULL on error
10952
+ * @since 1.20.0
10637
10953
  */
10638
10954
  ldmtool_diskgroup_disks(diskgroup: string): string[];
10639
10955
 
@@ -10648,6 +10964,7 @@ export namespace Guestfs {
10648
10964
  * See also `guestfs_session_feature_available()`.
10649
10965
  * @param diskgroup
10650
10966
  * @returns the returned string, or NULL on error
10967
+ * @since 1.20.0
10651
10968
  */
10652
10969
  ldmtool_diskgroup_name(diskgroup: string): string;
10653
10970
 
@@ -10662,6 +10979,7 @@ export namespace Guestfs {
10662
10979
  * See also `guestfs_session_feature_available()`.
10663
10980
  * @param diskgroup
10664
10981
  * @returns an array of returned strings, or NULL on error
10982
+ * @since 1.20.0
10665
10983
  */
10666
10984
  ldmtool_diskgroup_volumes(diskgroup: string): string[];
10667
10985
 
@@ -10675,6 +10993,7 @@ export namespace Guestfs {
10675
10993
  * This function depends on the feature "ldm".
10676
10994
  * See also `guestfs_session_feature_available()`.
10677
10995
  * @returns true on success, false on error
10996
+ * @since 1.20.0
10678
10997
  */
10679
10998
  ldmtool_remove_all(): boolean;
10680
10999
 
@@ -10691,6 +11010,7 @@ export namespace Guestfs {
10691
11010
  * This function depends on the feature "ldm".
10692
11011
  * See also `guestfs_session_feature_available()`.
10693
11012
  * @returns an array of returned strings, or NULL on error
11013
+ * @since 1.20.0
10694
11014
  */
10695
11015
  ldmtool_scan(): string[];
10696
11016
 
@@ -10708,6 +11028,7 @@ export namespace Guestfs {
10708
11028
  * See also `guestfs_session_feature_available()`.
10709
11029
  * @param devices an array of strings
10710
11030
  * @returns an array of returned strings, or NULL on error
11031
+ * @since 1.20.0
10711
11032
  */
10712
11033
  ldmtool_scan_devices(devices: string[]): string[];
10713
11034
 
@@ -10724,6 +11045,7 @@ export namespace Guestfs {
10724
11045
  * @param diskgroup
10725
11046
  * @param volume
10726
11047
  * @returns the returned string, or NULL on error
11048
+ * @since 1.20.0
10727
11049
  */
10728
11050
  ldmtool_volume_hint(diskgroup: string, volume: string): string;
10729
11051
 
@@ -10738,6 +11060,7 @@ export namespace Guestfs {
10738
11060
  * @param diskgroup
10739
11061
  * @param volume
10740
11062
  * @returns an array of returned strings, or NULL on error
11063
+ * @since 1.20.0
10741
11064
  */
10742
11065
  ldmtool_volume_partitions(diskgroup: string, volume: string): string[];
10743
11066
 
@@ -10755,6 +11078,7 @@ export namespace Guestfs {
10755
11078
  * @param diskgroup
10756
11079
  * @param volume
10757
11080
  * @returns the returned string, or NULL on error
11081
+ * @since 1.20.0
10758
11082
  */
10759
11083
  ldmtool_volume_type(diskgroup: string, volume: string): string;
10760
11084
 
@@ -10783,6 +11107,7 @@ export namespace Guestfs {
10783
11107
  * @param path
10784
11108
  * @param name
10785
11109
  * @returns an array of binary data, or NULL on error
11110
+ * @since 1.7.24
10786
11111
  */
10787
11112
  lgetxattr(path: string, name: string): Uint8Array;
10788
11113
 
@@ -10797,6 +11122,7 @@ export namespace Guestfs {
10797
11122
  * See also `guestfs_session_feature_available()`.
10798
11123
  * @param path
10799
11124
  * @returns an array of XAttr objects, or NULL on error
11125
+ * @since 1.0.59
10800
11126
  */
10801
11127
  lgetxattrs(path: string): XAttr[];
10802
11128
 
@@ -10806,6 +11132,7 @@ export namespace Guestfs {
10806
11132
  * List all 9p filesystems attached to the guest. A list of mount tags is
10807
11133
  * returned.
10808
11134
  * @returns an array of returned strings, or NULL on error
11135
+ * @since 1.11.12
10809
11136
  */
10810
11137
  list_9p(): string[];
10811
11138
 
@@ -10818,6 +11145,7 @@ export namespace Guestfs {
10818
11145
  *
10819
11146
  * See also `guestfs_session_list_filesystems()`.
10820
11147
  * @returns an array of returned strings, or NULL on error
11148
+ * @since 0.4
10821
11149
  */
10822
11150
  list_devices(): string[];
10823
11151
 
@@ -10833,6 +11161,7 @@ export namespace Guestfs {
10833
11161
  * /dev/disk/guestfs prefix), and the values are the full raw block device
10834
11162
  * and partition names (eg. /dev/sda and /dev/sda1).
10835
11163
  * @returns a GHashTable of results, or NULL on error
11164
+ * @since 1.19.49
10836
11165
  */
10837
11166
  list_disk_labels(): { [key: string]: string };
10838
11167
 
@@ -10848,6 +11177,7 @@ export namespace Guestfs {
10848
11177
  * returned in this list. Call `guestfs_session_lvs()` if you want to list
10849
11178
  * logical volumes.
10850
11179
  * @returns an array of returned strings, or NULL on error
11180
+ * @since 1.11.15
10851
11181
  */
10852
11182
  list_dm_devices(): string[];
10853
11183
 
@@ -10889,6 +11219,7 @@ export namespace Guestfs {
10889
11219
  * may not all belong to a single logical operating system (use
10890
11220
  * `guestfs_session_inspect_os()` to look for OSes).
10891
11221
  * @returns a GHashTable of results, or NULL on error
11222
+ * @since 1.5.15
10892
11223
  */
10893
11224
  list_filesystems(): { [key: string]: string };
10894
11225
 
@@ -10901,6 +11232,7 @@ export namespace Guestfs {
10901
11232
  * This function depends on the feature "ldm".
10902
11233
  * See also `guestfs_session_feature_available()`.
10903
11234
  * @returns an array of returned strings, or NULL on error
11235
+ * @since 1.20.0
10904
11236
  */
10905
11237
  list_ldm_partitions(): string[];
10906
11238
 
@@ -10913,6 +11245,7 @@ export namespace Guestfs {
10913
11245
  * This function depends on the feature "ldm".
10914
11246
  * See also `guestfs_session_feature_available()`.
10915
11247
  * @returns an array of returned strings, or NULL on error
11248
+ * @since 1.20.0
10916
11249
  */
10917
11250
  list_ldm_volumes(): string[];
10918
11251
 
@@ -10921,6 +11254,7 @@ export namespace Guestfs {
10921
11254
  *
10922
11255
  * List all Linux md devices.
10923
11256
  * @returns an array of returned strings, or NULL on error
11257
+ * @since 1.15.4
10924
11258
  */
10925
11259
  list_md_devices(): string[];
10926
11260
 
@@ -10936,6 +11270,7 @@ export namespace Guestfs {
10936
11270
  *
10937
11271
  * See also `guestfs_session_list_filesystems()`.
10938
11272
  * @returns an array of returned strings, or NULL on error
11273
+ * @since 0.4
10939
11274
  */
10940
11275
  list_partitions(): string[];
10941
11276
 
@@ -10949,6 +11284,7 @@ export namespace Guestfs {
10949
11284
  * intended that you try to parse the output string.
10950
11285
  * @param directory
10951
11286
  * @returns the returned string, or NULL on error
11287
+ * @since 0.4
10952
11288
  */
10953
11289
  ll(directory: string): string;
10954
11290
 
@@ -10961,6 +11297,8 @@ export namespace Guestfs {
10961
11297
  * intended that you try to parse the output string.
10962
11298
  * @param directory
10963
11299
  * @returns the returned string, or NULL on error
11300
+ * @since 1.17.6
11301
+ * @deprecated In new code, use `guestfs_session_lgetxattrs()` instead
10964
11302
  */
10965
11303
  llz(directory: string): string;
10966
11304
 
@@ -10971,6 +11309,7 @@ export namespace Guestfs {
10971
11309
  * @param target
10972
11310
  * @param linkname
10973
11311
  * @returns true on success, false on error
11312
+ * @since 1.0.66
10974
11313
  */
10975
11314
  ln(target: string, linkname: string): boolean;
10976
11315
 
@@ -10982,6 +11321,7 @@ export namespace Guestfs {
10982
11321
  * @param target
10983
11322
  * @param linkname
10984
11323
  * @returns true on success, false on error
11324
+ * @since 1.0.66
10985
11325
  */
10986
11326
  ln_f(target: string, linkname: string): boolean;
10987
11327
 
@@ -10992,6 +11332,7 @@ export namespace Guestfs {
10992
11332
  * @param target
10993
11333
  * @param linkname
10994
11334
  * @returns true on success, false on error
11335
+ * @since 1.0.66
10995
11336
  */
10996
11337
  ln_s(target: string, linkname: string): boolean;
10997
11338
 
@@ -11003,6 +11344,7 @@ export namespace Guestfs {
11003
11344
  * @param target
11004
11345
  * @param linkname
11005
11346
  * @returns true on success, false on error
11347
+ * @since 1.0.66
11006
11348
  */
11007
11349
  ln_sf(target: string, linkname: string): boolean;
11008
11350
 
@@ -11017,6 +11359,7 @@ export namespace Guestfs {
11017
11359
  * @param xattr
11018
11360
  * @param path
11019
11361
  * @returns true on success, false on error
11362
+ * @since 1.0.59
11020
11363
  */
11021
11364
  lremovexattr(xattr: string, path: string): boolean;
11022
11365
 
@@ -11028,6 +11371,7 @@ export namespace Guestfs {
11028
11371
  * shown.
11029
11372
  * @param directory
11030
11373
  * @returns an array of returned strings, or NULL on error
11374
+ * @since 0.4
11031
11375
  */
11032
11376
  ls(directory: string): string[];
11033
11377
 
@@ -11044,6 +11388,7 @@ export namespace Guestfs {
11044
11388
  * @param dir
11045
11389
  * @param filenames
11046
11390
  * @returns true on success, false on error
11391
+ * @since 1.19.32
11047
11392
  */
11048
11393
  ls0(dir: string, filenames: string): boolean;
11049
11394
 
@@ -11060,6 +11405,7 @@ export namespace Guestfs {
11060
11405
  * @param vallen
11061
11406
  * @param path
11062
11407
  * @returns true on success, false on error
11408
+ * @since 1.0.59
11063
11409
  */
11064
11410
  lsetxattr(xattr: string, val: string, vallen: number, path: string): boolean;
11065
11411
 
@@ -11074,6 +11420,8 @@ export namespace Guestfs {
11074
11420
  * This is the same as the lstat(2) system call.
11075
11421
  * @param path
11076
11422
  * @returns a Stat object, or NULL on error
11423
+ * @since 1.9.2
11424
+ * @deprecated In new code, use `guestfs_session_lstatns()` instead
11077
11425
  */
11078
11426
  lstat(path: string): Stat;
11079
11427
 
@@ -11095,6 +11443,8 @@ export namespace Guestfs {
11095
11443
  * @param path
11096
11444
  * @param names an array of strings
11097
11445
  * @returns an array of Stat objects, or NULL on error
11446
+ * @since 1.0.77
11447
+ * @deprecated In new code, use `guestfs_session_lstatnslist()` instead
11098
11448
  */
11099
11449
  lstatlist(path: string, names: string[]): Stat[];
11100
11450
 
@@ -11109,6 +11459,7 @@ export namespace Guestfs {
11109
11459
  * This is the same as the lstat(2) system call.
11110
11460
  * @param path
11111
11461
  * @returns a StatNS object, or NULL on error
11462
+ * @since 1.27.53
11112
11463
  */
11113
11464
  lstatns(path: string): StatNS;
11114
11465
 
@@ -11130,6 +11481,7 @@ export namespace Guestfs {
11130
11481
  * @param path
11131
11482
  * @param names an array of strings
11132
11483
  * @returns an array of StatNS objects, or NULL on error
11484
+ * @since 1.27.53
11133
11485
  */
11134
11486
  lstatnslist(path: string, names: string[]): StatNS[];
11135
11487
 
@@ -11151,6 +11503,7 @@ export namespace Guestfs {
11151
11503
  * @param newkey
11152
11504
  * @param keyslot
11153
11505
  * @returns true on success, false on error
11506
+ * @since 1.5.2
11154
11507
  */
11155
11508
  luks_add_key(device: string, key: string, newkey: string, keyslot: number): boolean;
11156
11509
 
@@ -11166,6 +11519,7 @@ export namespace Guestfs {
11166
11519
  * See also `guestfs_session_feature_available()`.
11167
11520
  * @param device
11168
11521
  * @returns true on success, false on error
11522
+ * @since 1.5.1
11169
11523
  */
11170
11524
  luks_close(device: string): boolean;
11171
11525
 
@@ -11182,6 +11536,7 @@ export namespace Guestfs {
11182
11536
  * @param key
11183
11537
  * @param keyslot
11184
11538
  * @returns true on success, false on error
11539
+ * @since 1.5.2
11185
11540
  */
11186
11541
  luks_format(device: string, key: string, keyslot: number): boolean;
11187
11542
 
@@ -11198,6 +11553,7 @@ export namespace Guestfs {
11198
11553
  * @param keyslot
11199
11554
  * @param cipher
11200
11555
  * @returns true on success, false on error
11556
+ * @since 1.5.2
11201
11557
  */
11202
11558
  luks_format_cipher(device: string, key: string, keyslot: number, cipher: string): boolean;
11203
11559
 
@@ -11213,6 +11569,7 @@ export namespace Guestfs {
11213
11569
  * @param key
11214
11570
  * @param keyslot
11215
11571
  * @returns true on success, false on error
11572
+ * @since 1.5.2
11216
11573
  */
11217
11574
  luks_kill_slot(device: string, key: string, keyslot: number): boolean;
11218
11575
 
@@ -11243,6 +11600,7 @@ export namespace Guestfs {
11243
11600
  * @param key
11244
11601
  * @param mapname
11245
11602
  * @returns true on success, false on error
11603
+ * @since 1.5.1
11246
11604
  */
11247
11605
  luks_open(device: string, key: string, mapname: string): boolean;
11248
11606
 
@@ -11258,6 +11616,7 @@ export namespace Guestfs {
11258
11616
  * @param key
11259
11617
  * @param mapname
11260
11618
  * @returns true on success, false on error
11619
+ * @since 1.5.1
11261
11620
  */
11262
11621
  luks_open_ro(device: string, key: string, mapname: string): boolean;
11263
11622
 
@@ -11273,6 +11632,7 @@ export namespace Guestfs {
11273
11632
  * @param volgroup
11274
11633
  * @param mbytes
11275
11634
  * @returns true on success, false on error
11635
+ * @since 0.8
11276
11636
  */
11277
11637
  lvcreate(logvol: string, volgroup: string, mbytes: number): boolean;
11278
11638
 
@@ -11290,6 +11650,7 @@ export namespace Guestfs {
11290
11650
  * @param volgroup
11291
11651
  * @param percent
11292
11652
  * @returns true on success, false on error
11653
+ * @since 1.17.18
11293
11654
  */
11294
11655
  lvcreate_free(logvol: string, volgroup: string, percent: number): boolean;
11295
11656
 
@@ -11307,6 +11668,7 @@ export namespace Guestfs {
11307
11668
  * `guestfs_session_canonical_device_name()`.
11308
11669
  * @param lvname
11309
11670
  * @returns the returned string, or NULL on error
11671
+ * @since 1.5.24
11310
11672
  */
11311
11673
  lvm_canonical_lv_name(lvname: string): string;
11312
11674
 
@@ -11318,6 +11680,7 @@ export namespace Guestfs {
11318
11680
  *
11319
11681
  * This command also clears the LVM cache and performs a volume group scan.
11320
11682
  * @returns true on success, false on error
11683
+ * @since 1.5.1
11321
11684
  */
11322
11685
  lvm_clear_filter(): boolean;
11323
11686
 
@@ -11330,6 +11693,7 @@ export namespace Guestfs {
11330
11693
  * This function depends on the feature "lvm2".
11331
11694
  * See also `guestfs_session_feature_available()`.
11332
11695
  * @returns true on success, false on error
11696
+ * @since 0.8
11333
11697
  */
11334
11698
  lvm_remove_all(): boolean;
11335
11699
 
@@ -11349,6 +11713,7 @@ export namespace Guestfs {
11349
11713
  * `guestfs_session_luks_open()` API is used).
11350
11714
  * @param activate
11351
11715
  * @returns true on success, false on error
11716
+ * @since 1.39.8
11352
11717
  */
11353
11718
  lvm_scan(activate: boolean): boolean;
11354
11719
 
@@ -11378,6 +11743,7 @@ export namespace Guestfs {
11378
11743
  * See also `guestfs_session_feature_available()`.
11379
11744
  * @param devices an array of strings
11380
11745
  * @returns true on success, false on error
11746
+ * @since 1.5.1
11381
11747
  */
11382
11748
  lvm_set_filter(devices: string[]): boolean;
11383
11749
 
@@ -11394,6 +11760,7 @@ export namespace Guestfs {
11394
11760
  * See also `guestfs_session_feature_available()`.
11395
11761
  * @param device
11396
11762
  * @returns true on success, false on error
11763
+ * @since 1.0.13
11397
11764
  */
11398
11765
  lvremove(device: string): boolean;
11399
11766
 
@@ -11404,6 +11771,7 @@ export namespace Guestfs {
11404
11771
  * @param logvol
11405
11772
  * @param newlogvol
11406
11773
  * @returns true on success, false on error
11774
+ * @since 1.0.83
11407
11775
  */
11408
11776
  lvrename(logvol: string, newlogvol: string): boolean;
11409
11777
 
@@ -11418,6 +11786,7 @@ export namespace Guestfs {
11418
11786
  * @param device
11419
11787
  * @param mbytes
11420
11788
  * @returns true on success, false on error
11789
+ * @since 1.0.27
11421
11790
  */
11422
11791
  lvresize(device: string, mbytes: number): boolean;
11423
11792
 
@@ -11434,6 +11803,7 @@ export namespace Guestfs {
11434
11803
  * @param lv
11435
11804
  * @param percent
11436
11805
  * @returns true on success, false on error
11806
+ * @since 1.3.3
11437
11807
  */
11438
11808
  lvresize_free(lv: string, percent: number): boolean;
11439
11809
 
@@ -11451,6 +11821,7 @@ export namespace Guestfs {
11451
11821
  * This function depends on the feature "lvm2".
11452
11822
  * See also `guestfs_session_feature_available()`.
11453
11823
  * @returns an array of returned strings, or NULL on error
11824
+ * @since 0.4
11454
11825
  */
11455
11826
  lvs(): string[];
11456
11827
 
@@ -11463,6 +11834,7 @@ export namespace Guestfs {
11463
11834
  * This function depends on the feature "lvm2".
11464
11835
  * See also `guestfs_session_feature_available()`.
11465
11836
  * @returns an array of LV objects, or NULL on error
11837
+ * @since 0.4
11466
11838
  */
11467
11839
  lvs_full(): LV[];
11468
11840
 
@@ -11472,6 +11844,7 @@ export namespace Guestfs {
11472
11844
  * This command returns the UUID of the LVM LV `device`.
11473
11845
  * @param device
11474
11846
  * @returns the returned string, or NULL on error
11847
+ * @since 1.0.87
11475
11848
  */
11476
11849
  lvuuid(device: string): string;
11477
11850
 
@@ -11501,6 +11874,7 @@ export namespace Guestfs {
11501
11874
  * @param path
11502
11875
  * @param names an array of strings
11503
11876
  * @returns an array of XAttr objects, or NULL on error
11877
+ * @since 1.0.77
11504
11878
  */
11505
11879
  lxattrlist(path: string, names: string[]): XAttr[];
11506
11880
 
@@ -11516,6 +11890,7 @@ export namespace Guestfs {
11516
11890
  * See "MAXIMUM NUMBER OF DISKS" in guestfs(3) for additional information
11517
11891
  * on this topic.
11518
11892
  * @returns the returned value, or -1 on error
11893
+ * @since 1.19.7
11519
11894
  */
11520
11895
  max_disks(): number;
11521
11896
 
@@ -11573,6 +11948,7 @@ export namespace Guestfs {
11573
11948
  * @param devices an array of strings
11574
11949
  * @param optargs a GuestfsMDCreate containing optional arguments
11575
11950
  * @returns true on success, false on error
11951
+ * @since 1.15.6
11576
11952
  */
11577
11953
  md_create(name: string, devices: string[], optargs: MDCreate | null): boolean;
11578
11954
 
@@ -11602,6 +11978,7 @@ export namespace Guestfs {
11602
11978
  * See also `guestfs_session_feature_available()`.
11603
11979
  * @param md
11604
11980
  * @returns a GHashTable of results, or NULL on error
11981
+ * @since 1.15.6
11605
11982
  */
11606
11983
  md_detail(md: string): { [key: string]: string };
11607
11984
 
@@ -11639,6 +12016,7 @@ export namespace Guestfs {
11639
12016
  * See also `guestfs_session_feature_available()`.
11640
12017
  * @param md
11641
12018
  * @returns an array of MDStat objects, or NULL on error
12019
+ * @since 1.17.21
11642
12020
  */
11643
12021
  md_stat(md: string): MDStat[];
11644
12022
 
@@ -11652,6 +12030,7 @@ export namespace Guestfs {
11652
12030
  * See also `guestfs_session_feature_available()`.
11653
12031
  * @param md
11654
12032
  * @returns true on success, false on error
12033
+ * @since 1.15.6
11655
12034
  */
11656
12035
  md_stop(md: string): boolean;
11657
12036
 
@@ -11661,6 +12040,7 @@ export namespace Guestfs {
11661
12040
  * Create a directory named `path`.
11662
12041
  * @param path
11663
12042
  * @returns true on success, false on error
12043
+ * @since 0.8
11664
12044
  */
11665
12045
  mkdir(path: string): boolean;
11666
12046
 
@@ -11678,6 +12058,7 @@ export namespace Guestfs {
11678
12058
  * @param path
11679
12059
  * @param mode
11680
12060
  * @returns true on success, false on error
12061
+ * @since 1.0.77
11681
12062
  */
11682
12063
  mkdir_mode(path: string, mode: number): boolean;
11683
12064
 
@@ -11688,6 +12069,7 @@ export namespace Guestfs {
11688
12069
  * necessary. This is like the "mkdir -p" shell command.
11689
12070
  * @param path
11690
12071
  * @returns true on success, false on error
12072
+ * @since 0.8
11691
12073
  */
11692
12074
  mkdir_p(path: string): boolean;
11693
12075
 
@@ -11711,6 +12093,7 @@ export namespace Guestfs {
11711
12093
  * See also: mkdtemp(3)
11712
12094
  * @param tmpl
11713
12095
  * @returns the returned string, or NULL on error
12096
+ * @since 1.0.54
11714
12097
  */
11715
12098
  mkdtemp(tmpl: string): string;
11716
12099
 
@@ -11726,6 +12109,7 @@ export namespace Guestfs {
11726
12109
  * @param device
11727
12110
  * @param optargs a GuestfsMke2fs containing optional arguments
11728
12111
  * @returns true on success, false on error
12112
+ * @since 1.19.44
11729
12113
  */
11730
12114
  mke2fs(device: string, optargs: Mke2fs | null): boolean;
11731
12115
 
@@ -11743,6 +12127,8 @@ export namespace Guestfs {
11743
12127
  * @param device
11744
12128
  * @param journal
11745
12129
  * @returns true on success, false on error
12130
+ * @since 1.0.68
12131
+ * @deprecated In new code, use `guestfs_session_mke2fs()` instead
11746
12132
  */
11747
12133
  mke2fs_J(fstype: string, blocksize: number, device: string, journal: string): boolean;
11748
12134
 
@@ -11758,6 +12144,8 @@ export namespace Guestfs {
11758
12144
  * @param device
11759
12145
  * @param label
11760
12146
  * @returns true on success, false on error
12147
+ * @since 1.0.68
12148
+ * @deprecated In new code, use `guestfs_session_mke2fs()` instead
11761
12149
  */
11762
12150
  mke2fs_JL(fstype: string, blocksize: number, device: string, label: string): boolean;
11763
12151
 
@@ -11776,6 +12164,8 @@ export namespace Guestfs {
11776
12164
  * @param device
11777
12165
  * @param uuid
11778
12166
  * @returns true on success, false on error
12167
+ * @since 1.0.68
12168
+ * @deprecated In new code, use `guestfs_session_mke2fs()` instead
11779
12169
  */
11780
12170
  mke2fs_JU(fstype: string, blocksize: number, device: string, uuid: string): boolean;
11781
12171
 
@@ -11789,6 +12179,8 @@ export namespace Guestfs {
11789
12179
  * @param blocksize
11790
12180
  * @param device
11791
12181
  * @returns true on success, false on error
12182
+ * @since 1.0.68
12183
+ * @deprecated In new code, use `guestfs_session_mke2fs()` instead
11792
12184
  */
11793
12185
  mke2journal(blocksize: number, device: string): boolean;
11794
12186
 
@@ -11800,6 +12192,8 @@ export namespace Guestfs {
11800
12192
  * @param label
11801
12193
  * @param device
11802
12194
  * @returns true on success, false on error
12195
+ * @since 1.0.68
12196
+ * @deprecated In new code, use `guestfs_session_mke2fs()` instead
11803
12197
  */
11804
12198
  mke2journal_L(blocksize: number, label: string, device: string): boolean;
11805
12199
 
@@ -11814,6 +12208,8 @@ export namespace Guestfs {
11814
12208
  * @param uuid
11815
12209
  * @param device
11816
12210
  * @returns true on success, false on error
12211
+ * @since 1.0.68
12212
+ * @deprecated In new code, use `guestfs_session_mke2fs()` instead
11817
12213
  */
11818
12214
  mke2journal_U(blocksize: number, uuid: string, device: string): boolean;
11819
12215
 
@@ -11833,6 +12229,7 @@ export namespace Guestfs {
11833
12229
  * @param mode
11834
12230
  * @param path
11835
12231
  * @returns true on success, false on error
12232
+ * @since 1.0.55
11836
12233
  */
11837
12234
  mkfifo(mode: number, path: string): boolean;
11838
12235
 
@@ -11875,6 +12272,7 @@ export namespace Guestfs {
11875
12272
  * @param device
11876
12273
  * @param optargs a GuestfsMkfs containing optional arguments
11877
12274
  * @returns true on success, false on error
12275
+ * @since 0.8
11878
12276
  */
11879
12277
  mkfs(fstype: string, device: string, optargs: Mkfs | null): boolean;
11880
12278
 
@@ -11892,6 +12290,8 @@ export namespace Guestfs {
11892
12290
  * @param blocksize
11893
12291
  * @param device
11894
12292
  * @returns true on success, false on error
12293
+ * @since 1.0.68
12294
+ * @deprecated In new code, use `guestfs_session_mkfs()` instead
11895
12295
  */
11896
12296
  mkfs_b(fstype: string, blocksize: number, device: string): boolean;
11897
12297
 
@@ -11911,6 +12311,7 @@ export namespace Guestfs {
11911
12311
  * @param devices an array of strings
11912
12312
  * @param optargs a GuestfsMkfsBtrfs containing optional arguments
11913
12313
  * @returns true on success, false on error
12314
+ * @since 1.17.25
11914
12315
  */
11915
12316
  mkfs_btrfs(devices: string[], optargs: MkfsBtrfs | null): boolean;
11916
12317
 
@@ -11922,6 +12323,7 @@ export namespace Guestfs {
11922
12323
  * create the "lost+found" directory.
11923
12324
  * @param mountpoint
11924
12325
  * @returns true on success, false on error
12326
+ * @since 1.19.56
11925
12327
  */
11926
12328
  mklost_and_found(mountpoint: string): boolean;
11927
12329
 
@@ -11977,6 +12379,7 @@ export namespace Guestfs {
11977
12379
  * handle is closed which can also trigger these issues.
11978
12380
  * @param exemptpath
11979
12381
  * @returns true on success, false on error
12382
+ * @since 1.0.62
11980
12383
  */
11981
12384
  mkmountpoint(exemptpath: string): boolean;
11982
12385
 
@@ -12007,6 +12410,7 @@ export namespace Guestfs {
12007
12410
  * @param devminor
12008
12411
  * @param path
12009
12412
  * @returns true on success, false on error
12413
+ * @since 1.0.55
12010
12414
  */
12011
12415
  mknod(mode: number, devmajor: number, devminor: number, path: string): boolean;
12012
12416
 
@@ -12029,6 +12433,7 @@ export namespace Guestfs {
12029
12433
  * @param devminor
12030
12434
  * @param path
12031
12435
  * @returns true on success, false on error
12436
+ * @since 1.0.55
12032
12437
  */
12033
12438
  mknod_b(mode: number, devmajor: number, devminor: number, path: string): boolean;
12034
12439
 
@@ -12051,6 +12456,7 @@ export namespace Guestfs {
12051
12456
  * @param devminor
12052
12457
  * @param path
12053
12458
  * @returns true on success, false on error
12459
+ * @since 1.0.55
12054
12460
  */
12055
12461
  mknod_c(mode: number, devmajor: number, devminor: number, path: string): boolean;
12056
12462
 
@@ -12080,6 +12486,7 @@ export namespace Guestfs {
12080
12486
  * @param optargs a GuestfsMksquashfs containing optional arguments
12081
12487
  * @param cancellable A GCancellable object
12082
12488
  * @returns true on success, false on error
12489
+ * @since 1.35.25
12083
12490
  */
12084
12491
  mksquashfs(path: string, filename: string, optargs: Mksquashfs | null, cancellable: Gio.Cancellable | null): boolean;
12085
12492
 
@@ -12093,6 +12500,7 @@ export namespace Guestfs {
12093
12500
  * @param device
12094
12501
  * @param optargs a GuestfsMkswap containing optional arguments
12095
12502
  * @returns true on success, false on error
12503
+ * @since 1.0.55
12096
12504
  */
12097
12505
  mkswap(device: string, optargs: Mkswap | null): boolean;
12098
12506
 
@@ -12107,6 +12515,8 @@ export namespace Guestfs {
12107
12515
  * @param label
12108
12516
  * @param device
12109
12517
  * @returns true on success, false on error
12518
+ * @since 1.0.55
12519
+ * @deprecated In new code, use `guestfs_session_mkswap()` instead
12110
12520
  */
12111
12521
  mkswap_L(label: string, device: string): boolean;
12112
12522
 
@@ -12120,6 +12530,8 @@ export namespace Guestfs {
12120
12530
  * @param uuid
12121
12531
  * @param device
12122
12532
  * @returns true on success, false on error
12533
+ * @since 1.0.55
12534
+ * @deprecated In new code, use `guestfs_session_mkswap()` instead
12123
12535
  */
12124
12536
  mkswap_U(uuid: string, device: string): boolean;
12125
12537
 
@@ -12132,6 +12544,7 @@ export namespace Guestfs {
12132
12544
  * create the file itself, use something like `guestfs_session_fallocate()`.
12133
12545
  * @param path
12134
12546
  * @returns true on success, false on error
12547
+ * @since 1.0.66
12135
12548
  */
12136
12549
  mkswap_file(path: string): boolean;
12137
12550
 
@@ -12158,6 +12571,7 @@ export namespace Guestfs {
12158
12571
  * @param tmpl
12159
12572
  * @param optargs a GuestfsMktemp containing optional arguments
12160
12573
  * @returns the returned string, or NULL on error
12574
+ * @since 1.19.53
12161
12575
  */
12162
12576
  mktemp(tmpl: string, optargs: Mktemp | null): string;
12163
12577
 
@@ -12170,6 +12584,7 @@ export namespace Guestfs {
12170
12584
  * See also `guestfs_session_feature_available()`.
12171
12585
  * @param modulename
12172
12586
  * @returns true on success, false on error
12587
+ * @since 1.0.68
12173
12588
  */
12174
12589
  modprobe(modulename: string): boolean;
12175
12590
 
@@ -12199,6 +12614,7 @@ export namespace Guestfs {
12199
12614
  * @param mountable
12200
12615
  * @param mountpoint
12201
12616
  * @returns true on success, false on error
12617
+ * @since 0.3
12202
12618
  */
12203
12619
  mount(mountable: string, mountpoint: string): boolean;
12204
12620
 
@@ -12215,6 +12631,7 @@ export namespace Guestfs {
12215
12631
  * @param mountpoint
12216
12632
  * @param optargs a GuestfsMount9P containing optional arguments
12217
12633
  * @returns true on success, false on error
12634
+ * @since 1.11.12
12218
12635
  */
12219
12636
  mount_9p(mounttag: string, mountpoint: string, optargs: Mount9P | null): boolean;
12220
12637
 
@@ -12247,6 +12664,7 @@ export namespace Guestfs {
12247
12664
  * @param localmountpoint
12248
12665
  * @param optargs a GuestfsMountLocal containing optional arguments
12249
12666
  * @returns true on success, false on error
12667
+ * @since 1.17.22
12250
12668
  */
12251
12669
  mount_local(localmountpoint: string, optargs: MountLocal | null): boolean;
12252
12670
 
@@ -12270,6 +12688,7 @@ export namespace Guestfs {
12270
12688
  * See "MOUNT LOCAL" in guestfs(3) for full documentation.
12271
12689
  * @param cancellable A GCancellable object
12272
12690
  * @returns true on success, false on error
12691
+ * @since 1.17.22
12273
12692
  */
12274
12693
  mount_local_run(cancellable: Gio.Cancellable | null): boolean;
12275
12694
 
@@ -12282,6 +12701,7 @@ export namespace Guestfs {
12282
12701
  * @param file
12283
12702
  * @param mountpoint
12284
12703
  * @returns true on success, false on error
12704
+ * @since 1.0.54
12285
12705
  */
12286
12706
  mount_loop(file: string, mountpoint: string): boolean;
12287
12707
 
@@ -12297,6 +12717,7 @@ export namespace Guestfs {
12297
12717
  * @param mountable
12298
12718
  * @param mountpoint
12299
12719
  * @returns true on success, false on error
12720
+ * @since 1.0.10
12300
12721
  */
12301
12722
  mount_options(options: string, mountable: string, mountpoint: string): boolean;
12302
12723
 
@@ -12308,6 +12729,7 @@ export namespace Guestfs {
12308
12729
  * @param mountable
12309
12730
  * @param mountpoint
12310
12731
  * @returns true on success, false on error
12732
+ * @since 1.0.10
12311
12733
  */
12312
12734
  mount_ro(mountable: string, mountpoint: string): boolean;
12313
12735
 
@@ -12322,6 +12744,7 @@ export namespace Guestfs {
12322
12744
  * @param mountable
12323
12745
  * @param mountpoint
12324
12746
  * @returns true on success, false on error
12747
+ * @since 1.0.10
12325
12748
  */
12326
12749
  mount_vfs(options: string, vfstype: string, mountable: string, mountpoint: string): boolean;
12327
12750
 
@@ -12337,6 +12760,7 @@ export namespace Guestfs {
12337
12760
  * the mountable if any).
12338
12761
  * @param mountable
12339
12762
  * @returns the returned string, or NULL on error
12763
+ * @since 1.33.15
12340
12764
  */
12341
12765
  mountable_device(mountable: string): string;
12342
12766
 
@@ -12352,6 +12776,7 @@ export namespace Guestfs {
12352
12776
  * function fails and the `errno` is set to `EINVAL`.
12353
12777
  * @param mountable
12354
12778
  * @returns the returned string, or NULL on error
12779
+ * @since 1.33.15
12355
12780
  */
12356
12781
  mountable_subvolume(mountable: string): string;
12357
12782
 
@@ -12362,6 +12787,7 @@ export namespace Guestfs {
12362
12787
  * list of devices. This one returns a hash table (map) of device name to
12363
12788
  * directory where the device is mounted.
12364
12789
  * @returns a GHashTable of results, or NULL on error
12790
+ * @since 1.0.62
12365
12791
  */
12366
12792
  mountpoints(): { [key: string]: string };
12367
12793
 
@@ -12375,6 +12801,7 @@ export namespace Guestfs {
12375
12801
  *
12376
12802
  * See also: `guestfs_session_mountpoints()`
12377
12803
  * @returns an array of returned strings, or NULL on error
12804
+ * @since 0.8
12378
12805
  */
12379
12806
  mounts(): string[];
12380
12807
 
@@ -12388,6 +12815,7 @@ export namespace Guestfs {
12388
12815
  * @param src
12389
12816
  * @param dest
12390
12817
  * @returns true on success, false on error
12818
+ * @since 1.0.18
12391
12819
  */
12392
12820
  mv(src: string, dest: string): boolean;
12393
12821
 
@@ -12401,6 +12829,7 @@ export namespace Guestfs {
12401
12829
  * To find out the maximum number of devices that could be added, call
12402
12830
  * `guestfs_session_max_disks()`.
12403
12831
  * @returns the returned value, or -1 on error
12832
+ * @since 1.19.15
12404
12833
  */
12405
12834
  nr_devices(): number;
12406
12835
 
@@ -12423,6 +12852,7 @@ export namespace Guestfs {
12423
12852
  * @param rw
12424
12853
  * @param device
12425
12854
  * @returns the returned value, or -1 on error
12855
+ * @since 1.0.43
12426
12856
  */
12427
12857
  ntfs_3g_probe(rw: boolean, device: string): number;
12428
12858
 
@@ -12442,6 +12872,7 @@ export namespace Guestfs {
12442
12872
  * @param filename
12443
12873
  * @param cancellable A GCancellable object
12444
12874
  * @returns true on success, false on error
12875
+ * @since 1.33.14
12445
12876
  */
12446
12877
  ntfscat_i(device: string, inode: bigint | number, filename: string, cancellable: Gio.Cancellable | null): boolean;
12447
12878
 
@@ -12458,6 +12889,7 @@ export namespace Guestfs {
12458
12889
  * @param device
12459
12890
  * @param cancellable A GCancellable object
12460
12891
  * @returns true on success, false on error
12892
+ * @since 1.17.9
12461
12893
  */
12462
12894
  ntfsclone_in(backupfile: string, device: string, cancellable: Gio.Cancellable | null): boolean;
12463
12895
 
@@ -12485,6 +12917,7 @@ export namespace Guestfs {
12485
12917
  * @param optargs a GuestfsNtfscloneOut containing optional arguments
12486
12918
  * @param cancellable A GCancellable object
12487
12919
  * @returns true on success, false on error
12920
+ * @since 1.17.9
12488
12921
  */
12489
12922
  ntfsclone_out(device: string, backupfile: string, optargs: NtfscloneOut | null, cancellable: Gio.Cancellable | null): boolean;
12490
12923
 
@@ -12506,6 +12939,7 @@ export namespace Guestfs {
12506
12939
  * @param device
12507
12940
  * @param optargs a GuestfsNtfsfix containing optional arguments
12508
12941
  * @returns true on success, false on error
12942
+ * @since 1.17.9
12509
12943
  */
12510
12944
  ntfsfix(device: string, optargs: Ntfsfix | null): boolean;
12511
12945
 
@@ -12539,6 +12973,7 @@ export namespace Guestfs {
12539
12973
  * @param device
12540
12974
  * @param optargs a GuestfsNTFSResizeOpts containing optional arguments
12541
12975
  * @returns true on success, false on error
12976
+ * @since 1.3.2
12542
12977
  */
12543
12978
  ntfsresize(device: string, optargs: NTFSResizeOpts | null): boolean;
12544
12979
 
@@ -12553,6 +12988,8 @@ export namespace Guestfs {
12553
12988
  * @param device
12554
12989
  * @param size
12555
12990
  * @returns true on success, false on error
12991
+ * @since 1.3.14
12992
+ * @deprecated In new code, use `guestfs_session_ntfsresize()` instead
12556
12993
  */
12557
12994
  ntfsresize_size(device: string, size: bigint | number): boolean;
12558
12995
 
@@ -12571,6 +13008,7 @@ export namespace Guestfs {
12571
13008
  * "guestfs_create_flags" in guestfs(3), and
12572
13009
  * `guestfs_session_parse_environment_list()`.
12573
13010
  * @returns true on success, false on error
13011
+ * @since 1.19.53
12574
13012
  */
12575
13013
  parse_environment(): boolean;
12576
13014
 
@@ -12585,6 +13023,7 @@ export namespace Guestfs {
12585
13023
  * parses an explicit list of strings instead of the program's environment.
12586
13024
  * @param environment an array of strings
12587
13025
  * @returns true on success, false on error
13026
+ * @since 1.19.53
12588
13027
  */
12589
13028
  parse_environment_list(environment: string[]): boolean;
12590
13029
 
@@ -12609,6 +13048,7 @@ export namespace Guestfs {
12609
13048
  * @param startsect
12610
13049
  * @param endsect
12611
13050
  * @returns true on success, false on error
13051
+ * @since 1.0.78
12612
13052
  */
12613
13053
  part_add(device: string, prlogex: string, startsect: bigint | number, endsect: bigint | number): boolean;
12614
13054
 
@@ -12622,6 +13062,7 @@ export namespace Guestfs {
12622
13062
  * @param device
12623
13063
  * @param partnum
12624
13064
  * @returns true on success, false on error
13065
+ * @since 1.3.2
12625
13066
  */
12626
13067
  part_del(device: string, partnum: number): boolean;
12627
13068
 
@@ -12637,6 +13078,7 @@ export namespace Guestfs {
12637
13078
  * @param device
12638
13079
  * @param parttype
12639
13080
  * @returns true on success, false on error
13081
+ * @since 1.0.78
12640
13082
  */
12641
13083
  part_disk(device: string, parttype: string): boolean;
12642
13084
 
@@ -12653,6 +13095,7 @@ export namespace Guestfs {
12653
13095
  * See also `guestfs_session_feature_available()`.
12654
13096
  * @param device
12655
13097
  * @returns true on success, false on error
13098
+ * @since 1.33.2
12656
13099
  */
12657
13100
  part_expand_gpt(device: string): boolean;
12658
13101
 
@@ -12666,6 +13109,7 @@ export namespace Guestfs {
12666
13109
  * @param device
12667
13110
  * @param partnum
12668
13111
  * @returns the returned value, or -1 on error
13112
+ * @since 1.3.2
12669
13113
  */
12670
13114
  part_get_bootable(device: string, partnum: number): number;
12671
13115
 
@@ -12679,6 +13123,7 @@ export namespace Guestfs {
12679
13123
  * See also `guestfs_session_feature_available()`.
12680
13124
  * @param device
12681
13125
  * @returns the returned string, or NULL on error
13126
+ * @since 1.33.2
12682
13127
  */
12683
13128
  part_get_disk_guid(device: string): string;
12684
13129
 
@@ -12693,6 +13138,7 @@ export namespace Guestfs {
12693
13138
  * @param device
12694
13139
  * @param partnum
12695
13140
  * @returns the returned value, or -1 on error
13141
+ * @since 1.21.1
12696
13142
  */
12697
13143
  part_get_gpt_attributes(device: string, partnum: number): number;
12698
13144
 
@@ -12706,6 +13152,7 @@ export namespace Guestfs {
12706
13152
  * @param device
12707
13153
  * @param partnum
12708
13154
  * @returns the returned string, or NULL on error
13155
+ * @since 1.29.25
12709
13156
  */
12710
13157
  part_get_gpt_guid(device: string, partnum: number): string;
12711
13158
 
@@ -12721,6 +13168,7 @@ export namespace Guestfs {
12721
13168
  * @param device
12722
13169
  * @param partnum
12723
13170
  * @returns the returned string, or NULL on error
13171
+ * @since 1.21.1
12724
13172
  */
12725
13173
  part_get_gpt_type(device: string, partnum: number): string;
12726
13174
 
@@ -12736,6 +13184,7 @@ export namespace Guestfs {
12736
13184
  * @param device
12737
13185
  * @param partnum
12738
13186
  * @returns the returned value, or -1 on error
13187
+ * @since 1.3.2
12739
13188
  */
12740
13189
  part_get_mbr_id(device: string, partnum: number): number;
12741
13190
 
@@ -12749,6 +13198,7 @@ export namespace Guestfs {
12749
13198
  * @param device
12750
13199
  * @param partnum
12751
13200
  * @returns the returned string, or NULL on error
13201
+ * @since 1.29.32
12752
13202
  */
12753
13203
  part_get_mbr_part_type(device: string, partnum: number): string;
12754
13204
 
@@ -12763,6 +13213,7 @@ export namespace Guestfs {
12763
13213
  * @param device
12764
13214
  * @param partnum
12765
13215
  * @returns the returned string, or NULL on error
13216
+ * @since 1.25.33
12766
13217
  */
12767
13218
  part_get_name(device: string, partnum: number): string;
12768
13219
 
@@ -12778,6 +13229,7 @@ export namespace Guestfs {
12778
13229
  * list.
12779
13230
  * @param device
12780
13231
  * @returns the returned string, or NULL on error
13232
+ * @since 1.0.78
12781
13233
  */
12782
13234
  part_get_parttype(device: string): string;
12783
13235
 
@@ -12829,6 +13281,7 @@ export namespace Guestfs {
12829
13281
  * @param device
12830
13282
  * @param parttype
12831
13283
  * @returns true on success, false on error
13284
+ * @since 1.0.78
12832
13285
  */
12833
13286
  part_init(device: string, parttype: string): boolean;
12834
13287
 
@@ -12854,6 +13307,7 @@ export namespace Guestfs {
12854
13307
  * Size of the partition in bytes.
12855
13308
  * @param device
12856
13309
  * @returns an array of Partition objects, or NULL on error
13310
+ * @since 1.0.78
12857
13311
  */
12858
13312
  part_list(device: string): Partition[];
12859
13313
 
@@ -12874,6 +13328,7 @@ export namespace Guestfs {
12874
13328
  * @param partnum
12875
13329
  * @param endsect
12876
13330
  * @returns true on success, false on error
13331
+ * @since 1.37.20
12877
13332
  */
12878
13333
  part_resize(device: string, partnum: number, endsect: bigint | number): boolean;
12879
13334
 
@@ -12890,6 +13345,7 @@ export namespace Guestfs {
12890
13345
  * @param partnum
12891
13346
  * @param bootable
12892
13347
  * @returns true on success, false on error
13348
+ * @since 1.0.78
12893
13349
  */
12894
13350
  part_set_bootable(device: string, partnum: number, bootable: boolean): boolean;
12895
13351
 
@@ -12905,6 +13361,7 @@ export namespace Guestfs {
12905
13361
  * @param device
12906
13362
  * @param guid
12907
13363
  * @returns true on success, false on error
13364
+ * @since 1.33.2
12908
13365
  */
12909
13366
  part_set_disk_guid(device: string, guid: string): boolean;
12910
13367
 
@@ -12919,6 +13376,7 @@ export namespace Guestfs {
12919
13376
  * See also `guestfs_session_feature_available()`.
12920
13377
  * @param device
12921
13378
  * @returns true on success, false on error
13379
+ * @since 1.33.2
12922
13380
  */
12923
13381
  part_set_disk_guid_random(device: string): boolean;
12924
13382
 
@@ -12940,6 +13398,7 @@ export namespace Guestfs {
12940
13398
  * @param partnum
12941
13399
  * @param attributes
12942
13400
  * @returns true on success, false on error
13401
+ * @since 1.21.1
12943
13402
  */
12944
13403
  part_set_gpt_attributes(device: string, partnum: number, attributes: bigint | number): boolean;
12945
13404
 
@@ -12956,6 +13415,7 @@ export namespace Guestfs {
12956
13415
  * @param partnum
12957
13416
  * @param guid
12958
13417
  * @returns true on success, false on error
13418
+ * @since 1.29.25
12959
13419
  */
12960
13420
  part_set_gpt_guid(device: string, partnum: number, guid: string): boolean;
12961
13421
 
@@ -12978,6 +13438,7 @@ export namespace Guestfs {
12978
13438
  * @param partnum
12979
13439
  * @param guid
12980
13440
  * @returns true on success, false on error
13441
+ * @since 1.21.1
12981
13442
  */
12982
13443
  part_set_gpt_type(device: string, partnum: number, guid: string): boolean;
12983
13444
 
@@ -12996,6 +13457,7 @@ export namespace Guestfs {
12996
13457
  * @param partnum
12997
13458
  * @param idbyte
12998
13459
  * @returns true on success, false on error
13460
+ * @since 1.3.2
12999
13461
  */
13000
13462
  part_set_mbr_id(device: string, partnum: number, idbyte: number): boolean;
13001
13463
 
@@ -13011,6 +13473,7 @@ export namespace Guestfs {
13011
13473
  * @param partnum
13012
13474
  * @param name
13013
13475
  * @returns true on success, false on error
13476
+ * @since 1.0.78
13014
13477
  */
13015
13478
  part_set_name(device: string, partnum: number, name: string): boolean;
13016
13479
 
@@ -13027,6 +13490,7 @@ export namespace Guestfs {
13027
13490
  * `guestfs_session_device_index()`.
13028
13491
  * @param partition
13029
13492
  * @returns the returned string, or NULL on error
13493
+ * @since 1.5.15
13030
13494
  */
13031
13495
  part_to_dev(partition: string): string;
13032
13496
 
@@ -13042,6 +13506,7 @@ export namespace Guestfs {
13042
13506
  * See also `guestfs_session_part_to_dev()`.
13043
13507
  * @param partition
13044
13508
  * @returns the returned value, or -1 on error
13509
+ * @since 1.13.25
13045
13510
  */
13046
13511
  part_to_partnum(partition: string): number;
13047
13512
 
@@ -13053,6 +13518,7 @@ export namespace Guestfs {
13053
13518
  * responds to the ping message, without affecting the daemon or attached
13054
13519
  * block device(s) in any other way.
13055
13520
  * @returns true on success, false on error
13521
+ * @since 1.0.18
13056
13522
  */
13057
13523
  ping_daemon(): boolean;
13058
13524
 
@@ -13070,6 +13536,7 @@ export namespace Guestfs {
13070
13536
  * @param count
13071
13537
  * @param offset
13072
13538
  * @returns an array of binary data, or NULL on error
13539
+ * @since 1.0.77
13073
13540
  */
13074
13541
  pread(path: string, count: number, offset: bigint | number): Uint8Array;
13075
13542
 
@@ -13087,6 +13554,7 @@ export namespace Guestfs {
13087
13554
  * @param count
13088
13555
  * @param offset
13089
13556
  * @returns an array of binary data, or NULL on error
13557
+ * @since 1.5.21
13090
13558
  */
13091
13559
  pread_device(device: string, count: number, offset: bigint | number): Uint8Array;
13092
13560
 
@@ -13099,6 +13567,7 @@ export namespace Guestfs {
13099
13567
  * See also `guestfs_session_feature_available()`.
13100
13568
  * @param device
13101
13569
  * @returns true on success, false on error
13570
+ * @since 1.19.26
13102
13571
  */
13103
13572
  pvchange_uuid(device: string): boolean;
13104
13573
 
@@ -13110,6 +13579,7 @@ export namespace Guestfs {
13110
13579
  * This function depends on the feature "lvm2".
13111
13580
  * See also `guestfs_session_feature_available()`.
13112
13581
  * @returns true on success, false on error
13582
+ * @since 1.19.26
13113
13583
  */
13114
13584
  pvchange_uuid_all(): boolean;
13115
13585
 
@@ -13123,6 +13593,7 @@ export namespace Guestfs {
13123
13593
  * See also `guestfs_session_feature_available()`.
13124
13594
  * @param device
13125
13595
  * @returns true on success, false on error
13596
+ * @since 0.8
13126
13597
  */
13127
13598
  pvcreate(device: string): boolean;
13128
13599
 
@@ -13140,6 +13611,7 @@ export namespace Guestfs {
13140
13611
  * See also `guestfs_session_feature_available()`.
13141
13612
  * @param device
13142
13613
  * @returns true on success, false on error
13614
+ * @since 1.0.13
13143
13615
  */
13144
13616
  pvremove(device: string): boolean;
13145
13617
 
@@ -13153,6 +13625,7 @@ export namespace Guestfs {
13153
13625
  * See also `guestfs_session_feature_available()`.
13154
13626
  * @param device
13155
13627
  * @returns true on success, false on error
13628
+ * @since 1.0.26
13156
13629
  */
13157
13630
  pvresize(device: string): boolean;
13158
13631
 
@@ -13167,6 +13640,7 @@ export namespace Guestfs {
13167
13640
  * @param device
13168
13641
  * @param size
13169
13642
  * @returns true on success, false on error
13643
+ * @since 1.3.14
13170
13644
  */
13171
13645
  pvresize_size(device: string, size: bigint | number): boolean;
13172
13646
 
@@ -13184,6 +13658,7 @@ export namespace Guestfs {
13184
13658
  * This function depends on the feature "lvm2".
13185
13659
  * See also `guestfs_session_feature_available()`.
13186
13660
  * @returns an array of returned strings, or NULL on error
13661
+ * @since 0.4
13187
13662
  */
13188
13663
  pvs(): string[];
13189
13664
 
@@ -13196,6 +13671,7 @@ export namespace Guestfs {
13196
13671
  * This function depends on the feature "lvm2".
13197
13672
  * See also `guestfs_session_feature_available()`.
13198
13673
  * @returns an array of PV objects, or NULL on error
13674
+ * @since 0.4
13199
13675
  */
13200
13676
  pvs_full(): PV[];
13201
13677
 
@@ -13205,6 +13681,7 @@ export namespace Guestfs {
13205
13681
  * This command returns the UUID of the LVM PV `device`.
13206
13682
  * @param device
13207
13683
  * @returns the returned string, or NULL on error
13684
+ * @since 1.0.87
13208
13685
  */
13209
13686
  pvuuid(device: string): string;
13210
13687
 
@@ -13225,6 +13702,7 @@ export namespace Guestfs {
13225
13702
  * @param content an array of binary data
13226
13703
  * @param offset
13227
13704
  * @returns the returned value, or -1 on error
13705
+ * @since 1.3.14
13228
13706
  */
13229
13707
  pwrite(path: string, content: Uint8Array | string, offset: bigint | number): number;
13230
13708
 
@@ -13244,6 +13722,7 @@ export namespace Guestfs {
13244
13722
  * @param content an array of binary data
13245
13723
  * @param offset
13246
13724
  * @returns the returned value, or -1 on error
13725
+ * @since 1.5.20
13247
13726
  */
13248
13727
  pwrite_device(device: string, content: Uint8Array | string, offset: bigint | number): number;
13249
13728
 
@@ -13256,6 +13735,7 @@ export namespace Guestfs {
13256
13735
  * that contain embedded ASCII NUL characters.
13257
13736
  * @param path
13258
13737
  * @returns an array of binary data, or NULL on error
13738
+ * @since 1.0.63
13259
13739
  */
13260
13740
  read_file(path: string): Uint8Array;
13261
13741
 
@@ -13273,6 +13753,7 @@ export namespace Guestfs {
13273
13753
  * function and split the buffer into lines yourself.
13274
13754
  * @param path
13275
13755
  * @returns an array of returned strings, or NULL on error
13756
+ * @since 0.7
13276
13757
  */
13277
13758
  read_lines(path: string): string[];
13278
13759
 
@@ -13312,6 +13793,7 @@ export namespace Guestfs {
13312
13793
  * for human consumption, use `guestfs_session_ll()`.
13313
13794
  * @param dir
13314
13795
  * @returns an array of Dirent objects, or NULL on error
13796
+ * @since 1.0.55
13315
13797
  */
13316
13798
  readdir(dir: string): Dirent[];
13317
13799
 
@@ -13321,6 +13803,7 @@ export namespace Guestfs {
13321
13803
  * This command reads the target of a symbolic link.
13322
13804
  * @param path
13323
13805
  * @returns the returned string, or NULL on error
13806
+ * @since 1.0.66
13324
13807
  */
13325
13808
  readlink(path: string): string;
13326
13809
 
@@ -13345,6 +13828,7 @@ export namespace Guestfs {
13345
13828
  * @param path
13346
13829
  * @param names an array of strings
13347
13830
  * @returns an array of returned strings, or NULL on error
13831
+ * @since 1.0.77
13348
13832
  */
13349
13833
  readlinklist(path: string, names: string[]): string[];
13350
13834
 
@@ -13355,6 +13839,7 @@ export namespace Guestfs {
13355
13839
  * has no ".", ".." or symbolic link path elements.
13356
13840
  * @param path
13357
13841
  * @returns the returned string, or NULL on error
13842
+ * @since 1.0.66
13358
13843
  */
13359
13844
  realpath(path: string): string;
13360
13845
 
@@ -13370,6 +13855,7 @@ export namespace Guestfs {
13370
13855
  * @param mountpoint
13371
13856
  * @param optargs a GuestfsRemount containing optional arguments
13372
13857
  * @returns true on success, false on error
13858
+ * @since 1.23.2
13373
13859
  */
13374
13860
  remount(mountpoint: string, optargs: Remount | null): boolean;
13375
13861
 
@@ -13391,6 +13877,7 @@ export namespace Guestfs {
13391
13877
  * and stop you from doing this.
13392
13878
  * @param label
13393
13879
  * @returns true on success, false on error
13880
+ * @since 1.19.49
13394
13881
  */
13395
13882
  remove_drive(label: string): boolean;
13396
13883
 
@@ -13406,6 +13893,7 @@ export namespace Guestfs {
13406
13893
  * @param xattr
13407
13894
  * @param path
13408
13895
  * @returns true on success, false on error
13896
+ * @since 1.0.59
13409
13897
  */
13410
13898
  removexattr(xattr: string, path: string): boolean;
13411
13899
 
@@ -13418,6 +13906,7 @@ export namespace Guestfs {
13418
13906
  * @param oldpath
13419
13907
  * @param newpath
13420
13908
  * @returns true on success, false on error
13909
+ * @since 1.21.5
13421
13910
  */
13422
13911
  rename(oldpath: string, newpath: string): boolean;
13423
13912
 
@@ -13430,6 +13919,7 @@ export namespace Guestfs {
13430
13919
  * See also "RESIZE2FS ERRORS" in guestfs(3).
13431
13920
  * @param device
13432
13921
  * @returns true on success, false on error
13922
+ * @since 1.0.27
13433
13923
  */
13434
13924
  resize2fs(device: string): boolean;
13435
13925
 
@@ -13448,6 +13938,7 @@ export namespace Guestfs {
13448
13938
  * See also "RESIZE2FS ERRORS" in guestfs(3).
13449
13939
  * @param device
13450
13940
  * @returns true on success, false on error
13941
+ * @since 1.9.4
13451
13942
  */
13452
13943
  resize2fs_M(device: string): boolean;
13453
13944
 
@@ -13461,6 +13952,7 @@ export namespace Guestfs {
13461
13952
  * @param device
13462
13953
  * @param size
13463
13954
  * @returns true on success, false on error
13955
+ * @since 1.3.14
13464
13956
  */
13465
13957
  resize2fs_size(device: string, size: bigint | number): boolean;
13466
13958
 
@@ -13470,6 +13962,7 @@ export namespace Guestfs {
13470
13962
  * Remove the single file `path`.
13471
13963
  * @param path
13472
13964
  * @returns true on success, false on error
13965
+ * @since 0.8
13473
13966
  */
13474
13967
  rm(path: string): boolean;
13475
13968
 
@@ -13486,6 +13979,7 @@ export namespace Guestfs {
13486
13979
  * directories recursively.
13487
13980
  * @param path
13488
13981
  * @returns true on success, false on error
13982
+ * @since 1.19.42
13489
13983
  */
13490
13984
  rm_f(path: string): boolean;
13491
13985
 
@@ -13496,6 +13990,7 @@ export namespace Guestfs {
13496
13990
  * its a directory. This is like the "rm -rf" shell command.
13497
13991
  * @param path
13498
13992
  * @returns true on success, false on error
13993
+ * @since 0.8
13499
13994
  */
13500
13995
  rm_rf(path: string): boolean;
13501
13996
 
@@ -13505,6 +14000,7 @@ export namespace Guestfs {
13505
14000
  * Remove the single directory `path`.
13506
14001
  * @param path
13507
14002
  * @returns true on success, false on error
14003
+ * @since 0.8
13508
14004
  */
13509
14005
  rmdir(path: string): boolean;
13510
14006
 
@@ -13516,6 +14012,7 @@ export namespace Guestfs {
13516
14012
  * full details.
13517
14013
  * @param exemptpath
13518
14014
  * @returns true on success, false on error
14015
+ * @since 1.0.62
13519
14016
  */
13520
14017
  rmmountpoint(exemptpath: string): boolean;
13521
14018
 
@@ -13544,6 +14041,7 @@ export namespace Guestfs {
13544
14041
  * @param dest
13545
14042
  * @param optargs a GuestfsRsync containing optional arguments
13546
14043
  * @returns true on success, false on error
14044
+ * @since 1.19.29
13547
14045
  */
13548
14046
  rsync(src: string, dest: string, optargs: Rsync | null): boolean;
13549
14047
 
@@ -13574,6 +14072,7 @@ export namespace Guestfs {
13574
14072
  * @param dest
13575
14073
  * @param optargs a GuestfsRsyncIn containing optional arguments
13576
14074
  * @returns true on success, false on error
14075
+ * @since 1.19.29
13577
14076
  */
13578
14077
  rsync_in(remote: string, dest: string, optargs: RsyncIn | null): boolean;
13579
14078
 
@@ -13611,6 +14110,7 @@ export namespace Guestfs {
13611
14110
  * @param remote
13612
14111
  * @param optargs a GuestfsRsyncOut containing optional arguments
13613
14112
  * @returns true on success, false on error
14113
+ * @since 1.19.29
13614
14114
  */
13615
14115
  rsync_out(src: string, remote: string, optargs: RsyncOut | null): boolean;
13616
14116
 
@@ -13627,6 +14127,7 @@ export namespace Guestfs {
13627
14127
  * See also `guestfs_session_feature_available()`.
13628
14128
  * @param device
13629
14129
  * @returns true on success, false on error
14130
+ * @since 1.0.52
13630
14131
  */
13631
14132
  scrub_device(device: string): boolean;
13632
14133
 
@@ -13645,6 +14146,7 @@ export namespace Guestfs {
13645
14146
  * See also `guestfs_session_feature_available()`.
13646
14147
  * @param file
13647
14148
  * @returns true on success, false on error
14149
+ * @since 1.0.52
13648
14150
  */
13649
14151
  scrub_file(file: string): boolean;
13650
14152
 
@@ -13663,6 +14165,7 @@ export namespace Guestfs {
13663
14165
  * See also `guestfs_session_feature_available()`.
13664
14166
  * @param dir
13665
14167
  * @returns true on success, false on error
14168
+ * @since 1.0.52
13666
14169
  */
13667
14170
  scrub_freespace(dir: string): boolean;
13668
14171
 
@@ -13690,6 +14193,7 @@ export namespace Guestfs {
13690
14193
  * @param path
13691
14194
  * @param optargs a GuestfsSelinuxRelabel containing optional arguments
13692
14195
  * @returns true on success, false on error
14196
+ * @since 1.33.43
13693
14197
  */
13694
14198
  selinux_relabel(specfile: string, path: string, optargs: SelinuxRelabel | null): boolean;
13695
14199
 
@@ -13706,6 +14210,7 @@ export namespace Guestfs {
13706
14210
  * (libguestfs always adds a few of its own).
13707
14211
  * @param append
13708
14212
  * @returns true on success, false on error
14213
+ * @since 1.0.26
13709
14214
  */
13710
14215
  set_append(append: string | null): boolean;
13711
14216
 
@@ -13718,6 +14223,8 @@ export namespace Guestfs {
13718
14223
  * See "BACKEND" in guestfs(3).
13719
14224
  * @param backend
13720
14225
  * @returns true on success, false on error
14226
+ * @since 1.9.8
14227
+ * @deprecated In new code, use `guestfs_session_set_backend()` instead
13721
14228
  */
13722
14229
  set_attach_method(backend: string): boolean;
13723
14230
 
@@ -13732,6 +14239,7 @@ export namespace Guestfs {
13732
14239
  * disabled by default).
13733
14240
  * @param autosync
13734
14241
  * @returns true on success, false on error
14242
+ * @since 0.3
13735
14243
  */
13736
14244
  set_autosync(autosync: boolean): boolean;
13737
14245
 
@@ -13746,6 +14254,7 @@ export namespace Guestfs {
13746
14254
  * See "BACKEND" in guestfs(3).
13747
14255
  * @param backend
13748
14256
  * @returns true on success, false on error
14257
+ * @since 1.21.26
13749
14258
  */
13750
14259
  set_backend(backend: string): boolean;
13751
14260
 
@@ -13760,6 +14269,7 @@ export namespace Guestfs {
13760
14269
  * @param name
13761
14270
  * @param val
13762
14271
  * @returns true on success, false on error
14272
+ * @since 1.27.2
13763
14273
  */
13764
14274
  set_backend_setting(name: string, val: string): boolean;
13765
14275
 
@@ -13782,6 +14292,7 @@ export namespace Guestfs {
13782
14292
  * See "BACKEND" in guestfs(3), "BACKEND SETTINGS" in guestfs(3).
13783
14293
  * @param settings an array of strings
13784
14294
  * @returns true on success, false on error
14295
+ * @since 1.25.24
13785
14296
  */
13786
14297
  set_backend_settings(settings: string[]): boolean;
13787
14298
 
@@ -13798,6 +14309,7 @@ export namespace Guestfs {
13798
14309
  * default.
13799
14310
  * @param cachedir
13800
14311
  * @returns true on success, false on error
14312
+ * @since 1.19.58
13801
14313
  */
13802
14314
  set_cachedir(cachedir: string | null): boolean;
13803
14315
 
@@ -13816,6 +14328,8 @@ export namespace Guestfs {
13816
14328
  * The default is disabled.
13817
14329
  * @param direct
13818
14330
  * @returns true on success, false on error
14331
+ * @since 1.0.72
14332
+ * @deprecated In new code, use `guestfs_session_internal_get_console_socket()` instead
13819
14333
  */
13820
14334
  set_direct(direct: boolean): boolean;
13821
14335
 
@@ -13844,6 +14358,7 @@ export namespace Guestfs {
13844
14358
  * @param attrs
13845
14359
  * @param optargs a GuestfsSetE2attrs containing optional arguments
13846
14360
  * @returns true on success, false on error
14361
+ * @since 1.17.31
13847
14362
  */
13848
14363
  set_e2attrs(file: string, attrs: string, optargs: SetE2attrs | null): boolean;
13849
14364
 
@@ -13856,6 +14371,7 @@ export namespace Guestfs {
13856
14371
  * @param file
13857
14372
  * @param generation
13858
14373
  * @returns true on success, false on error
14374
+ * @since 1.17.31
13859
14375
  */
13860
14376
  set_e2generation(file: string, generation: bigint | number): boolean;
13861
14377
 
@@ -13871,6 +14387,8 @@ export namespace Guestfs {
13871
14387
  * @param device
13872
14388
  * @param label
13873
14389
  * @returns true on success, false on error
14390
+ * @since 1.0.15
14391
+ * @deprecated In new code, use `guestfs_session_set_label()` instead
13874
14392
  */
13875
14393
  set_e2label(device: string, label: string): boolean;
13876
14394
 
@@ -13886,6 +14404,8 @@ export namespace Guestfs {
13886
14404
  * @param device
13887
14405
  * @param uuid
13888
14406
  * @returns true on success, false on error
14407
+ * @since 1.0.15
14408
+ * @deprecated In new code, use `guestfs_session_set_uuid()` instead
13889
14409
  */
13890
14410
  set_e2uuid(device: string, uuid: string): boolean;
13891
14411
 
@@ -13911,6 +14431,7 @@ export namespace Guestfs {
13911
14431
  * created.
13912
14432
  * @param hv
13913
14433
  * @returns true on success, false on error
14434
+ * @since 1.23.17
13914
14435
  */
13915
14436
  set_hv(hv: string): boolean;
13916
14437
 
@@ -13943,6 +14464,7 @@ export namespace Guestfs {
13943
14464
  * `guestfs_session_get_identifier()`.
13944
14465
  * @param identifier
13945
14466
  * @returns true on success, false on error
14467
+ * @since 1.31.14
13946
14468
  */
13947
14469
  set_identifier(identifier: string): boolean;
13948
14470
 
@@ -13981,6 +14503,7 @@ export namespace Guestfs {
13981
14503
  * @param mountable
13982
14504
  * @param label
13983
14505
  * @returns true on success, false on error
14506
+ * @since 1.17.9
13984
14507
  */
13985
14508
  set_label(mountable: string, label: string): boolean;
13986
14509
 
@@ -13995,6 +14518,7 @@ export namespace Guestfs {
13995
14518
  * @param index
13996
14519
  * @param cred an array of binary data
13997
14520
  * @returns true on success, false on error
14521
+ * @since 1.19.52
13998
14522
  */
13999
14523
  set_libvirt_requested_credential(index: number, cred: Uint8Array | string): boolean;
14000
14524
 
@@ -14024,6 +14548,7 @@ export namespace Guestfs {
14024
14548
  * code.
14025
14549
  * @param creds an array of strings
14026
14550
  * @returns true on success, false on error
14551
+ * @since 1.19.52
14027
14552
  */
14028
14553
  set_libvirt_supported_credentials(creds: string[]): boolean;
14029
14554
 
@@ -14039,6 +14564,7 @@ export namespace Guestfs {
14039
14564
  * For more information on the architecture of libguestfs, see guestfs(3).
14040
14565
  * @param memsize
14041
14566
  * @returns true on success, false on error
14567
+ * @since 1.0.55
14042
14568
  */
14043
14569
  set_memsize(memsize: number): boolean;
14044
14570
 
@@ -14055,6 +14581,7 @@ export namespace Guestfs {
14055
14581
  * has no effect.
14056
14582
  * @param network
14057
14583
  * @returns true on success, false on error
14584
+ * @since 1.5.4
14058
14585
  */
14059
14586
  set_network(network: boolean): boolean;
14060
14587
 
@@ -14069,6 +14596,7 @@ export namespace Guestfs {
14069
14596
  * Setting `path` to `NULL` restores the default path.
14070
14597
  * @param searchpath
14071
14598
  * @returns true on success, false on error
14599
+ * @since 0.3
14072
14600
  */
14073
14601
  set_path(searchpath: string | null): boolean;
14074
14602
 
@@ -14087,6 +14615,7 @@ export namespace Guestfs {
14087
14615
  * (see `guestfs_session_user_cancel()`).
14088
14616
  * @param pgroup
14089
14617
  * @returns true on success, false on error
14618
+ * @since 1.11.18
14090
14619
  */
14091
14620
  set_pgroup(pgroup: boolean): boolean;
14092
14621
 
@@ -14100,6 +14629,7 @@ export namespace Guestfs {
14100
14629
  * basename from "argv[0]". The program name can never be `NULL`.
14101
14630
  * @param program
14102
14631
  * @returns true on success, false on error
14632
+ * @since 1.21.29
14103
14633
  */
14104
14634
  set_program(program: string): boolean;
14105
14635
 
@@ -14125,6 +14655,8 @@ export namespace Guestfs {
14125
14655
  * created.
14126
14656
  * @param hv
14127
14657
  * @returns true on success, false on error
14658
+ * @since 1.0.6
14659
+ * @deprecated In new code, use `guestfs_session_set_hv()` instead
14128
14660
  */
14129
14661
  set_qemu(hv: string | null): boolean;
14130
14662
 
@@ -14145,6 +14677,7 @@ export namespace Guestfs {
14145
14677
  * disappeared and so kills the hypervisor, which is not very helpful.
14146
14678
  * @param recoveryproc
14147
14679
  * @returns true on success, false on error
14680
+ * @since 1.0.77
14148
14681
  */
14149
14682
  set_recovery_proc(recoveryproc: boolean): boolean;
14150
14683
 
@@ -14160,6 +14693,8 @@ export namespace Guestfs {
14160
14693
  * For more information on the architecture of libguestfs, see guestfs(3).
14161
14694
  * @param selinux
14162
14695
  * @returns true on success, false on error
14696
+ * @since 1.0.67
14697
+ * @deprecated In new code, use `guestfs_session_selinux_relabel()` instead
14163
14698
  */
14164
14699
  set_selinux(selinux: boolean): boolean;
14165
14700
 
@@ -14173,6 +14708,7 @@ export namespace Guestfs {
14173
14708
  * This function must be called before `guestfs_session_launch()`.
14174
14709
  * @param smp
14175
14710
  * @returns true on success, false on error
14711
+ * @since 1.13.15
14176
14712
  */
14177
14713
  set_smp(smp: number): boolean;
14178
14714
 
@@ -14187,6 +14723,7 @@ export namespace Guestfs {
14187
14723
  * default.
14188
14724
  * @param tmpdir
14189
14725
  * @returns true on success, false on error
14726
+ * @since 1.19.58
14190
14727
  */
14191
14728
  set_tmpdir(tmpdir: string | null): boolean;
14192
14729
 
@@ -14207,6 +14744,7 @@ export namespace Guestfs {
14207
14744
  * `guestfs_session_set_event_callback()`).
14208
14745
  * @param trace
14209
14746
  * @returns true on success, false on error
14747
+ * @since 1.0.69
14210
14748
  */
14211
14749
  set_trace(trace: boolean): boolean;
14212
14750
 
@@ -14223,6 +14761,7 @@ export namespace Guestfs {
14223
14761
  * @param device
14224
14762
  * @param uuid
14225
14763
  * @returns true on success, false on error
14764
+ * @since 1.23.10
14226
14765
  */
14227
14766
  set_uuid(device: string, uuid: string): boolean;
14228
14767
 
@@ -14238,6 +14777,7 @@ export namespace Guestfs {
14238
14777
  * To read the UUID on a filesystem, call `guestfs_session_vfs_uuid()`.
14239
14778
  * @param device
14240
14779
  * @returns true on success, false on error
14780
+ * @since 1.29.50
14241
14781
  */
14242
14782
  set_uuid_random(device: string): boolean;
14243
14783
 
@@ -14254,6 +14794,7 @@ export namespace Guestfs {
14254
14794
  * `guestfs_session_set_event_callback()`).
14255
14795
  * @param verbose
14256
14796
  * @returns true on success, false on error
14797
+ * @since 0.3
14257
14798
  */
14258
14799
  set_verbose(verbose: boolean): boolean;
14259
14800
 
@@ -14269,6 +14810,8 @@ export namespace Guestfs {
14269
14810
  * See also `guestfs_session_feature_available()`.
14270
14811
  * @param context
14271
14812
  * @returns true on success, false on error
14813
+ * @since 1.0.67
14814
+ * @deprecated In new code, use `guestfs_session_selinux_relabel()` instead
14272
14815
  */
14273
14816
  setcon(context: string): boolean;
14274
14817
 
@@ -14287,6 +14830,7 @@ export namespace Guestfs {
14287
14830
  * @param vallen
14288
14831
  * @param path
14289
14832
  * @returns true on success, false on error
14833
+ * @since 1.0.59
14290
14834
  */
14291
14835
  setxattr(xattr: string, val: string, vallen: number, path: string): boolean;
14292
14836
 
@@ -14321,6 +14865,8 @@ export namespace Guestfs {
14321
14865
  * @param sectors
14322
14866
  * @param lines an array of strings
14323
14867
  * @returns true on success, false on error
14868
+ * @since 0.8
14869
+ * @deprecated In new code, use `guestfs_session_part_add()` instead
14324
14870
  */
14325
14871
  sfdisk(device: string, cyls: number, heads: number, sectors: number, lines: string[]): boolean;
14326
14872
 
@@ -14337,6 +14883,8 @@ export namespace Guestfs {
14337
14883
  * @param device
14338
14884
  * @param lines an array of strings
14339
14885
  * @returns true on success, false on error
14886
+ * @since 1.0.55
14887
+ * @deprecated In new code, use `guestfs_session_part_add()` instead
14340
14888
  */
14341
14889
  sfdiskM(device: string, lines: string[]): boolean;
14342
14890
 
@@ -14357,6 +14905,8 @@ export namespace Guestfs {
14357
14905
  * @param sectors
14358
14906
  * @param line
14359
14907
  * @returns true on success, false on error
14908
+ * @since 1.0.26
14909
+ * @deprecated In new code, use `guestfs_session_part_add()` instead
14360
14910
  */
14361
14911
  sfdisk_N(device: string, partnum: number, cyls: number, heads: number, sectors: number, line: string): boolean;
14362
14912
 
@@ -14371,6 +14921,7 @@ export namespace Guestfs {
14371
14921
  * The result is in human-readable format, and not designed to be parsed.
14372
14922
  * @param device
14373
14923
  * @returns the returned string, or NULL on error
14924
+ * @since 1.0.26
14374
14925
  */
14375
14926
  sfdisk_disk_geometry(device: string): string;
14376
14927
 
@@ -14382,6 +14933,7 @@ export namespace Guestfs {
14382
14933
  * The result is in human-readable format, and not designed to be parsed.
14383
14934
  * @param device
14384
14935
  * @returns the returned string, or NULL on error
14936
+ * @since 1.0.26
14385
14937
  */
14386
14938
  sfdisk_kernel_geometry(device: string): string;
14387
14939
 
@@ -14394,6 +14946,8 @@ export namespace Guestfs {
14394
14946
  * See also: `guestfs_session_part_list()`
14395
14947
  * @param device
14396
14948
  * @returns the returned string, or NULL on error
14949
+ * @since 1.0.26
14950
+ * @deprecated In new code, use `guestfs_session_part_list()` instead
14397
14951
  */
14398
14952
  sfdisk_l(device: string): string;
14399
14953
 
@@ -14413,6 +14967,7 @@ export namespace Guestfs {
14413
14967
  * All the provisos about `guestfs_session_command()` apply to this call.
14414
14968
  * @param command
14415
14969
  * @returns the returned string, or NULL on error
14970
+ * @since 1.0.50
14416
14971
  */
14417
14972
  sh(command: string): string;
14418
14973
 
@@ -14425,6 +14980,7 @@ export namespace Guestfs {
14425
14980
  * See also: `guestfs_session_command_lines()`
14426
14981
  * @param command
14427
14982
  * @returns an array of returned strings, or NULL on error
14983
+ * @since 1.0.50
14428
14984
  */
14429
14985
  sh_lines(command: string): string[];
14430
14986
 
@@ -14447,6 +15003,7 @@ export namespace Guestfs {
14447
15003
  * `guestfs_session_close()` will call this if you don't do it explicitly,
14448
15004
  * but note that any errors are ignored in that case.
14449
15005
  * @returns true on success, false on error
15006
+ * @since 1.19.16
14450
15007
  */
14451
15008
  shutdown(): boolean;
14452
15009
 
@@ -14456,6 +15013,7 @@ export namespace Guestfs {
14456
15013
  * Sleep for `secs` seconds.
14457
15014
  * @param secs
14458
15015
  * @returns true on success, false on error
15016
+ * @since 1.0.41
14459
15017
  */
14460
15018
  sleep(secs: number): boolean;
14461
15019
 
@@ -14467,6 +15025,8 @@ export namespace Guestfs {
14467
15025
  * This is the same as the stat(2) system call.
14468
15026
  * @param path
14469
15027
  * @returns a Stat object, or NULL on error
15028
+ * @since 1.9.2
15029
+ * @deprecated In new code, use `guestfs_session_statns()` instead
14470
15030
  */
14471
15031
  stat(path: string): Stat;
14472
15032
 
@@ -14478,6 +15038,7 @@ export namespace Guestfs {
14478
15038
  * This is the same as the stat(2) system call.
14479
15039
  * @param path
14480
15040
  * @returns a StatNS object, or NULL on error
15041
+ * @since 1.27.53
14481
15042
  */
14482
15043
  statns(path: string): StatNS;
14483
15044
 
@@ -14491,6 +15052,7 @@ export namespace Guestfs {
14491
15052
  * This is the same as the statvfs(2) system call.
14492
15053
  * @param path
14493
15054
  * @returns a StatVFS object, or NULL on error
15055
+ * @since 1.9.2
14494
15056
  */
14495
15057
  statvfs(path: string): StatVFS;
14496
15058
 
@@ -14505,6 +15067,7 @@ export namespace Guestfs {
14505
15067
  * libguestfs, but see "CVE-2014-8484" in guestfs(3).
14506
15068
  * @param path
14507
15069
  * @returns an array of returned strings, or NULL on error
15070
+ * @since 1.0.22
14508
15071
  */
14509
15072
  strings(path: string): string[];
14510
15073
 
@@ -14541,6 +15104,7 @@ export namespace Guestfs {
14541
15104
  * @param encoding
14542
15105
  * @param path
14543
15106
  * @returns an array of returned strings, or NULL on error
15107
+ * @since 1.0.22
14544
15108
  */
14545
15109
  strings_e(encoding: string, path: string): string[];
14546
15110
 
@@ -14551,6 +15115,7 @@ export namespace Guestfs {
14551
15115
  * named `device`. See `guestfs_session_swapon_device()`.
14552
15116
  * @param device
14553
15117
  * @returns true on success, false on error
15118
+ * @since 1.0.66
14554
15119
  */
14555
15120
  swapoff_device(device: string): boolean;
14556
15121
 
@@ -14560,6 +15125,7 @@ export namespace Guestfs {
14560
15125
  * This command disables the libguestfs appliance swap on file.
14561
15126
  * @param file
14562
15127
  * @returns true on success, false on error
15128
+ * @since 1.0.66
14563
15129
  */
14564
15130
  swapoff_file(file: string): boolean;
14565
15131
 
@@ -14570,6 +15136,7 @@ export namespace Guestfs {
14570
15136
  * partition.
14571
15137
  * @param label
14572
15138
  * @returns true on success, false on error
15139
+ * @since 1.0.66
14573
15140
  */
14574
15141
  swapoff_label(label: string): boolean;
14575
15142
 
@@ -14583,6 +15150,7 @@ export namespace Guestfs {
14583
15150
  * See also `guestfs_session_feature_available()`.
14584
15151
  * @param uuid
14585
15152
  * @returns true on success, false on error
15153
+ * @since 1.0.66
14586
15154
  */
14587
15155
  swapoff_uuid(uuid: string): boolean;
14588
15156
 
@@ -14601,6 +15169,7 @@ export namespace Guestfs {
14601
15169
  * attach a new host device to the guest and swap on that.
14602
15170
  * @param device
14603
15171
  * @returns true on success, false on error
15172
+ * @since 1.0.66
14604
15173
  */
14605
15174
  swapon_device(device: string): boolean;
14606
15175
 
@@ -14611,6 +15180,7 @@ export namespace Guestfs {
14611
15180
  * for other notes.
14612
15181
  * @param file
14613
15182
  * @returns true on success, false on error
15183
+ * @since 1.0.66
14614
15184
  */
14615
15185
  swapon_file(file: string): boolean;
14616
15186
 
@@ -14621,6 +15191,7 @@ export namespace Guestfs {
14621
15191
  * `guestfs_session_swapon_device()` for other notes.
14622
15192
  * @param label
14623
15193
  * @returns true on success, false on error
15194
+ * @since 1.0.66
14624
15195
  */
14625
15196
  swapon_label(label: string): boolean;
14626
15197
 
@@ -14634,6 +15205,7 @@ export namespace Guestfs {
14634
15205
  * See also `guestfs_session_feature_available()`.
14635
15206
  * @param uuid
14636
15207
  * @returns true on success, false on error
15208
+ * @since 1.0.66
14637
15209
  */
14638
15210
  swapon_uuid(uuid: string): boolean;
14639
15211
 
@@ -14646,6 +15218,7 @@ export namespace Guestfs {
14646
15218
  * You should always call this if you have modified a disk image, before
14647
15219
  * closing the handle.
14648
15220
  * @returns true on success, false on error
15221
+ * @since 0.3
14649
15222
  */
14650
15223
  sync(): boolean;
14651
15224
 
@@ -14681,6 +15254,7 @@ export namespace Guestfs {
14681
15254
  * @param device
14682
15255
  * @param optargs a GuestfsSyslinux containing optional arguments
14683
15256
  * @returns true on success, false on error
15257
+ * @since 1.21.27
14684
15258
  */
14685
15259
  syslinux(device: string, optargs: Syslinux | null): boolean;
14686
15260
 
@@ -14691,6 +15265,7 @@ export namespace Guestfs {
14691
15265
  * strings.
14692
15266
  * @param path
14693
15267
  * @returns an array of returned strings, or NULL on error
15268
+ * @since 1.0.54
14694
15269
  */
14695
15270
  tail(path: string): string[];
14696
15271
 
@@ -14707,6 +15282,7 @@ export namespace Guestfs {
14707
15282
  * @param nrlines
14708
15283
  * @param path
14709
15284
  * @returns an array of returned strings, or NULL on error
15285
+ * @since 1.0.54
14710
15286
  */
14711
15287
  tail_n(nrlines: number, path: string): string[];
14712
15288
 
@@ -14736,6 +15312,7 @@ export namespace Guestfs {
14736
15312
  * @param optargs a GuestfsTarIn containing optional arguments
14737
15313
  * @param cancellable A GCancellable object
14738
15314
  * @returns true on success, false on error
15315
+ * @since 1.0.3
14739
15316
  */
14740
15317
  tar_in(tarfile: string, directory: string, optargs: TarIn | null, cancellable: Gio.Cancellable | null): boolean;
14741
15318
 
@@ -14774,6 +15351,7 @@ export namespace Guestfs {
14774
15351
  * @param optargs a GuestfsTarOut containing optional arguments
14775
15352
  * @param cancellable A GCancellable object
14776
15353
  * @returns true on success, false on error
15354
+ * @since 1.0.3
14777
15355
  */
14778
15356
  tar_out(directory: string, tarfile: string, optargs: TarOut | null, cancellable: Gio.Cancellable | null): boolean;
14779
15357
 
@@ -14786,6 +15364,8 @@ export namespace Guestfs {
14786
15364
  * @param directory
14787
15365
  * @param cancellable A GCancellable object
14788
15366
  * @returns true on success, false on error
15367
+ * @since 1.0.3
15368
+ * @deprecated In new code, use `guestfs_session_tar_in()` instead
14789
15369
  */
14790
15370
  tgz_in(tarball: string, directory: string, cancellable: Gio.Cancellable | null): boolean;
14791
15371
 
@@ -14798,6 +15378,8 @@ export namespace Guestfs {
14798
15378
  * @param tarball
14799
15379
  * @param cancellable A GCancellable object
14800
15380
  * @returns true on success, false on error
15381
+ * @since 1.0.3
15382
+ * @deprecated In new code, use `guestfs_session_tar_out()` instead
14801
15383
  */
14802
15384
  tgz_out(directory: string, tarball: string, cancellable: Gio.Cancellable | null): boolean;
14803
15385
 
@@ -14812,6 +15394,7 @@ export namespace Guestfs {
14812
15394
  * types such as directories, symbolic links, block special etc.
14813
15395
  * @param path
14814
15396
  * @returns true on success, false on error
15397
+ * @since 0.3
14815
15398
  */
14816
15399
  touch(path: string): boolean;
14817
15400
 
@@ -14822,6 +15405,7 @@ export namespace Guestfs {
14822
15405
  * already.
14823
15406
  * @param path
14824
15407
  * @returns true on success, false on error
15408
+ * @since 1.0.77
14825
15409
  */
14826
15410
  truncate(path: string): boolean;
14827
15411
 
@@ -14838,6 +15422,7 @@ export namespace Guestfs {
14838
15422
  * @param path
14839
15423
  * @param size
14840
15424
  * @returns true on success, false on error
15425
+ * @since 1.0.77
14841
15426
  */
14842
15427
  truncate_size(path: string, size: bigint | number): boolean;
14843
15428
 
@@ -14903,6 +15488,7 @@ export namespace Guestfs {
14903
15488
  * @param device
14904
15489
  * @param optargs a GuestfsTune2FS containing optional arguments
14905
15490
  * @returns true on success, false on error
15491
+ * @since 1.15.4
14906
15492
  */
14907
15493
  tune2fs(device: string, optargs: Tune2FS | null): boolean;
14908
15494
 
@@ -14918,6 +15504,7 @@ export namespace Guestfs {
14918
15504
  * against, and the filesystem itself.
14919
15505
  * @param device
14920
15506
  * @returns a GHashTable of results, or NULL on error
15507
+ * @since 1.9.2
14921
15508
  */
14922
15509
  tune2fs_l(device: string): { [key: string]: string };
14923
15510
 
@@ -14933,6 +15520,8 @@ export namespace Guestfs {
14933
15520
  * @param directory
14934
15521
  * @param cancellable A GCancellable object
14935
15522
  * @returns true on success, false on error
15523
+ * @since 1.3.2
15524
+ * @deprecated In new code, use `guestfs_session_tar_in()` instead
14936
15525
  */
14937
15526
  txz_in(tarball: string, directory: string, cancellable: Gio.Cancellable | null): boolean;
14938
15527
 
@@ -14948,6 +15537,8 @@ export namespace Guestfs {
14948
15537
  * @param tarball
14949
15538
  * @param cancellable A GCancellable object
14950
15539
  * @returns true on success, false on error
15540
+ * @since 1.3.2
15541
+ * @deprecated In new code, use `guestfs_session_tar_out()` instead
14951
15542
  */
14952
15543
  txz_out(directory: string, tarball: string, cancellable: Gio.Cancellable | null): boolean;
14953
15544
 
@@ -14971,6 +15562,7 @@ export namespace Guestfs {
14971
15562
  * This call returns the previous umask.
14972
15563
  * @param mask
14973
15564
  * @returns the returned value, or -1 on error
15565
+ * @since 1.0.55
14974
15566
  */
14975
15567
  umask(mask: number): number;
14976
15568
 
@@ -14983,6 +15575,7 @@ export namespace Guestfs {
14983
15575
  * @param pathordevice
14984
15576
  * @param optargs a GuestfsUmount containing optional arguments
14985
15577
  * @returns true on success, false on error
15578
+ * @since 0.8
14986
15579
  */
14987
15580
  umount(pathordevice: string, optargs: Umount | null): boolean;
14988
15581
 
@@ -14993,6 +15586,7 @@ export namespace Guestfs {
14993
15586
  *
14994
15587
  * Some internal mounts are not unmounted by this call.
14995
15588
  * @returns true on success, false on error
15589
+ * @since 0.8
14996
15590
  */
14997
15591
  umount_all(): boolean;
14998
15592
 
@@ -15005,6 +15599,7 @@ export namespace Guestfs {
15005
15599
  * See "MOUNT LOCAL" in guestfs(3) for full documentation.
15006
15600
  * @param optargs a GuestfsUmountLocal containing optional arguments
15007
15601
  * @returns true on success, false on error
15602
+ * @since 1.17.22
15008
15603
  */
15009
15604
  umount_local(optargs: UmountLocal | null): boolean;
15010
15605
 
@@ -15020,6 +15615,7 @@ export namespace Guestfs {
15020
15615
  * @param remotefilename
15021
15616
  * @param cancellable A GCancellable object
15022
15617
  * @returns true on success, false on error
15618
+ * @since 1.0.2
15023
15619
  */
15024
15620
  upload(filename: string, remotefilename: string, cancellable: Gio.Cancellable | null): boolean;
15025
15621
 
@@ -15044,6 +15640,7 @@ export namespace Guestfs {
15044
15640
  * @param offset
15045
15641
  * @param cancellable A GCancellable object
15046
15642
  * @returns true on success, false on error
15643
+ * @since 1.5.17
15047
15644
  */
15048
15645
  upload_offset(filename: string, remotefilename: string, offset: bigint | number, cancellable: Gio.Cancellable | null): boolean;
15049
15646
 
@@ -15077,6 +15674,7 @@ export namespace Guestfs {
15077
15674
  * bar with a cancel button, wire up the cancel button to call this
15078
15675
  * function.
15079
15676
  * @returns true on success, false on error
15677
+ * @since 1.11.18
15080
15678
  */
15081
15679
  user_cancel(): boolean;
15082
15680
 
@@ -15104,6 +15702,7 @@ export namespace Guestfs {
15104
15702
  * @param mtsecs
15105
15703
  * @param mtnsecs
15106
15704
  * @returns true on success, false on error
15705
+ * @since 1.0.77
15107
15706
  */
15108
15707
  utimens(path: string, atsecs: bigint | number, atnsecs: bigint | number, mtsecs: bigint | number, mtnsecs: bigint | number): boolean;
15109
15708
 
@@ -15114,6 +15713,7 @@ export namespace Guestfs {
15114
15713
  * available. This information is only useful for debugging. Nothing in the
15115
15714
  * returned structure is defined by the API.
15116
15715
  * @returns a UTSName object, or NULL on error
15716
+ * @since 1.19.27
15117
15717
  */
15118
15718
  utsname(): UTSName;
15119
15719
 
@@ -15147,6 +15747,7 @@ export namespace Guestfs {
15147
15747
  * Use `guestfs_session_available()` or `guestfs_session_feature_available()`
15148
15748
  * instead.
15149
15749
  * @returns a Version object, or NULL on error
15750
+ * @since 1.0.58
15150
15751
  */
15151
15752
  version(): Version;
15152
15753
 
@@ -15160,6 +15761,7 @@ export namespace Guestfs {
15160
15761
  * To find a filesystem from the label, use `guestfs_session_findfs_label()`.
15161
15762
  * @param mountable
15162
15763
  * @returns the returned string, or NULL on error
15764
+ * @since 1.3.18
15163
15765
  */
15164
15766
  vfs_label(mountable: string): string;
15165
15767
 
@@ -15175,6 +15777,7 @@ export namespace Guestfs {
15175
15777
  * See also ntfsresize(8), resize2fs(8), btrfs(8), xfs_info(8).
15176
15778
  * @param mountable
15177
15779
  * @returns the returned value, or -1 on error
15780
+ * @since 1.31.18
15178
15781
  */
15179
15782
  vfs_minimum_size(mountable: string): number;
15180
15783
 
@@ -15190,6 +15793,7 @@ export namespace Guestfs {
15190
15793
  * `ntfs`.
15191
15794
  * @param mountable
15192
15795
  * @returns the returned string, or NULL on error
15796
+ * @since 1.0.75
15193
15797
  */
15194
15798
  vfs_type(mountable: string): string;
15195
15799
 
@@ -15203,6 +15807,7 @@ export namespace Guestfs {
15203
15807
  * To find a filesystem from the UUID, use `guestfs_session_findfs_uuid()`.
15204
15808
  * @param mountable
15205
15809
  * @returns the returned string, or NULL on error
15810
+ * @since 1.3.18
15206
15811
  */
15207
15812
  vfs_uuid(mountable: string): string;
15208
15813
 
@@ -15222,6 +15827,7 @@ export namespace Guestfs {
15222
15827
  * @param activate
15223
15828
  * @param volgroups an array of strings
15224
15829
  * @returns true on success, false on error
15830
+ * @since 1.0.26
15225
15831
  */
15226
15832
  vg_activate(activate: boolean, volgroups: string[]): boolean;
15227
15833
 
@@ -15237,6 +15843,7 @@ export namespace Guestfs {
15237
15843
  * See also `guestfs_session_feature_available()`.
15238
15844
  * @param activate
15239
15845
  * @returns true on success, false on error
15846
+ * @since 1.0.26
15240
15847
  */
15241
15848
  vg_activate_all(activate: boolean): boolean;
15242
15849
 
@@ -15249,6 +15856,7 @@ export namespace Guestfs {
15249
15856
  * See also `guestfs_session_feature_available()`.
15250
15857
  * @param vg
15251
15858
  * @returns true on success, false on error
15859
+ * @since 1.19.26
15252
15860
  */
15253
15861
  vgchange_uuid(vg: string): boolean;
15254
15862
 
@@ -15260,6 +15868,7 @@ export namespace Guestfs {
15260
15868
  * This function depends on the feature "lvm2".
15261
15869
  * See also `guestfs_session_feature_available()`.
15262
15870
  * @returns true on success, false on error
15871
+ * @since 1.19.26
15263
15872
  */
15264
15873
  vgchange_uuid_all(): boolean;
15265
15874
 
@@ -15274,6 +15883,7 @@ export namespace Guestfs {
15274
15883
  * @param volgroup
15275
15884
  * @param physvols an array of strings
15276
15885
  * @returns true on success, false on error
15886
+ * @since 0.8
15277
15887
  */
15278
15888
  vgcreate(volgroup: string, physvols: string[]): boolean;
15279
15889
 
@@ -15290,6 +15900,7 @@ export namespace Guestfs {
15290
15900
  * See also `guestfs_session_vgpvuuids()`.
15291
15901
  * @param vgname
15292
15902
  * @returns an array of returned strings, or NULL on error
15903
+ * @since 1.0.87
15293
15904
  */
15294
15905
  vglvuuids(vgname: string): string[];
15295
15906
 
@@ -15306,6 +15917,7 @@ export namespace Guestfs {
15306
15917
  * See also `guestfs_session_feature_available()`.
15307
15918
  * @param vgname
15308
15919
  * @returns an array of binary data, or NULL on error
15920
+ * @since 1.17.20
15309
15921
  */
15310
15922
  vgmeta(vgname: string): Uint8Array;
15311
15923
 
@@ -15322,6 +15934,7 @@ export namespace Guestfs {
15322
15934
  * See also `guestfs_session_vglvuuids()`.
15323
15935
  * @param vgname
15324
15936
  * @returns an array of returned strings, or NULL on error
15937
+ * @since 1.0.87
15325
15938
  */
15326
15939
  vgpvuuids(vgname: string): string[];
15327
15940
 
@@ -15337,6 +15950,7 @@ export namespace Guestfs {
15337
15950
  * See also `guestfs_session_feature_available()`.
15338
15951
  * @param vgname
15339
15952
  * @returns true on success, false on error
15953
+ * @since 1.0.13
15340
15954
  */
15341
15955
  vgremove(vgname: string): boolean;
15342
15956
 
@@ -15347,6 +15961,7 @@ export namespace Guestfs {
15347
15961
  * @param volgroup
15348
15962
  * @param newvolgroup
15349
15963
  * @returns true on success, false on error
15964
+ * @since 1.0.83
15350
15965
  */
15351
15966
  vgrename(volgroup: string, newvolgroup: string): boolean;
15352
15967
 
@@ -15364,6 +15979,7 @@ export namespace Guestfs {
15364
15979
  * This function depends on the feature "lvm2".
15365
15980
  * See also `guestfs_session_feature_available()`.
15366
15981
  * @returns an array of returned strings, or NULL on error
15982
+ * @since 0.4
15367
15983
  */
15368
15984
  vgs(): string[];
15369
15985
 
@@ -15376,6 +15992,7 @@ export namespace Guestfs {
15376
15992
  * This function depends on the feature "lvm2".
15377
15993
  * See also `guestfs_session_feature_available()`.
15378
15994
  * @returns an array of VG objects, or NULL on error
15995
+ * @since 0.4
15379
15996
  */
15380
15997
  vgs_full(): VG[];
15381
15998
 
@@ -15385,6 +16002,8 @@ export namespace Guestfs {
15385
16002
  * This rescans all block devices and rebuilds the list of LVM physical
15386
16003
  * volumes, volume groups and logical volumes.
15387
16004
  * @returns true on success, false on error
16005
+ * @since 1.3.2
16006
+ * @deprecated In new code, use `guestfs_session_lvm_scan()` instead
15388
16007
  */
15389
16008
  vgscan(): boolean;
15390
16009
 
@@ -15394,6 +16013,7 @@ export namespace Guestfs {
15394
16013
  * This command returns the UUID of the LVM VG named `vgname`.
15395
16014
  * @param vgname
15396
16015
  * @returns the returned string, or NULL on error
16016
+ * @since 1.0.87
15397
16017
  */
15398
16018
  vguuid(vgname: string): string;
15399
16019
 
@@ -15411,6 +16031,8 @@ export namespace Guestfs {
15411
16031
  * them, unless you want to retain compatibility with older versions of the
15412
16032
  * API.
15413
16033
  * @returns true on success, false on error
16034
+ * @since 0.3
16035
+ * @deprecated There is no documented replacement
15414
16036
  */
15415
16037
  wait_ready(): boolean;
15416
16038
 
@@ -15421,6 +16043,7 @@ export namespace Guestfs {
15421
16043
  * command.
15422
16044
  * @param path
15423
16045
  * @returns the returned value, or -1 on error
16046
+ * @since 1.0.54
15424
16047
  */
15425
16048
  wc_c(path: string): number;
15426
16049
 
@@ -15431,6 +16054,7 @@ export namespace Guestfs {
15431
16054
  * command.
15432
16055
  * @param path
15433
16056
  * @returns the returned value, or -1 on error
16057
+ * @since 1.0.54
15434
16058
  */
15435
16059
  wc_l(path: string): number;
15436
16060
 
@@ -15441,6 +16065,7 @@ export namespace Guestfs {
15441
16065
  * command.
15442
16066
  * @param path
15443
16067
  * @returns the returned value, or -1 on error
16068
+ * @since 1.0.54
15444
16069
  */
15445
16070
  wc_w(path: string): number;
15446
16071
 
@@ -15460,6 +16085,7 @@ export namespace Guestfs {
15460
16085
  * See also `guestfs_session_feature_available()`.
15461
16086
  * @param device
15462
16087
  * @returns true on success, false on error
16088
+ * @since 1.17.6
15463
16089
  */
15464
16090
  wipefs(device: string): boolean;
15465
16091
 
@@ -15473,6 +16099,7 @@ export namespace Guestfs {
15473
16099
  * @param path
15474
16100
  * @param content an array of binary data
15475
16101
  * @returns true on success, false on error
16102
+ * @since 1.3.14
15476
16103
  */
15477
16104
  write(path: string, content: Uint8Array | string): boolean;
15478
16105
 
@@ -15486,6 +16113,7 @@ export namespace Guestfs {
15486
16113
  * @param path
15487
16114
  * @param content an array of binary data
15488
16115
  * @returns true on success, false on error
16116
+ * @since 1.11.18
15489
16117
  */
15490
16118
  write_append(path: string, content: Uint8Array | string): boolean;
15491
16119
 
@@ -15505,6 +16133,8 @@ export namespace Guestfs {
15505
16133
  * @param content
15506
16134
  * @param size
15507
16135
  * @returns true on success, false on error
16136
+ * @since 0.8
16137
+ * @deprecated In new code, use `guestfs_session_write()` instead
15508
16138
  */
15509
16139
  write_file(path: string, content: string, size: number): boolean;
15510
16140
 
@@ -15525,6 +16155,7 @@ export namespace Guestfs {
15525
16155
  * @param device
15526
16156
  * @param optargs a GuestfsXfsAdmin containing optional arguments
15527
16157
  * @returns true on success, false on error
16158
+ * @since 1.19.33
15528
16159
  */
15529
16160
  xfs_admin(device: string, optargs: XfsAdmin | null): boolean;
15530
16161
 
@@ -15541,6 +16172,7 @@ export namespace Guestfs {
15541
16172
  * @param path
15542
16173
  * @param optargs a GuestfsXfsGrowfs containing optional arguments
15543
16174
  * @returns true on success, false on error
16175
+ * @since 1.19.28
15544
16176
  */
15545
16177
  xfs_growfs(path: string, optargs: XfsGrowfs | null): boolean;
15546
16178
 
@@ -15557,6 +16189,7 @@ export namespace Guestfs {
15557
16189
  * See also `guestfs_session_feature_available()`.
15558
16190
  * @param pathordevice
15559
16191
  * @returns a XFSInfo object, or NULL on error
16192
+ * @since 1.19.21
15560
16193
  */
15561
16194
  xfs_info(pathordevice: string): XFSInfo;
15562
16195
 
@@ -15582,6 +16215,7 @@ export namespace Guestfs {
15582
16215
  * @param device
15583
16216
  * @param optargs a GuestfsXfsRepair containing optional arguments
15584
16217
  * @returns the returned value, or -1 on error
16218
+ * @since 1.19.36
15585
16219
  */
15586
16220
  xfs_repair(device: string, optargs: XfsRepair | null): number;
15587
16221
 
@@ -15594,6 +16228,7 @@ export namespace Guestfs {
15594
16228
  * This function depends on the feature "libyara".
15595
16229
  * See also `guestfs_session_feature_available()`.
15596
16230
  * @returns true on success, false on error
16231
+ * @since 1.37.13
15597
16232
  */
15598
16233
  yara_destroy(): boolean;
15599
16234
 
@@ -15620,6 +16255,7 @@ export namespace Guestfs {
15620
16255
  * @param filename
15621
16256
  * @param cancellable A GCancellable object
15622
16257
  * @returns true on success, false on error
16258
+ * @since 1.37.13
15623
16259
  */
15624
16260
  yara_load(filename: string, cancellable: Gio.Cancellable | null): boolean;
15625
16261
 
@@ -15643,6 +16279,7 @@ export namespace Guestfs {
15643
16279
  * @param path
15644
16280
  * @param cancellable A GCancellable object
15645
16281
  * @returns an array of YaraDetection objects, or NULL on error
16282
+ * @since 1.37.13
15646
16283
  */
15647
16284
  yara_scan(path: string, cancellable: Gio.Cancellable | null): YaraDetection[];
15648
16285
 
@@ -15653,6 +16290,8 @@ export namespace Guestfs {
15653
16290
  * @param regex
15654
16291
  * @param path
15655
16292
  * @returns an array of returned strings, or NULL on error
16293
+ * @since 1.0.66
16294
+ * @deprecated In new code, use `guestfs_session_grep()` instead
15656
16295
  */
15657
16296
  zegrep(regex: string, path: string): string[];
15658
16297
 
@@ -15664,6 +16303,8 @@ export namespace Guestfs {
15664
16303
  * @param regex
15665
16304
  * @param path
15666
16305
  * @returns an array of returned strings, or NULL on error
16306
+ * @since 1.0.66
16307
+ * @deprecated In new code, use `guestfs_session_grep()` instead
15667
16308
  */
15668
16309
  zegrepi(regex: string, path: string): string[];
15669
16310
 
@@ -15684,6 +16325,7 @@ export namespace Guestfs {
15684
16325
  * `guestfs_session_is_zero_device()`
15685
16326
  * @param device
15686
16327
  * @returns true on success, false on error
16328
+ * @since 1.0.16
15687
16329
  */
15688
16330
  zero(device: string): boolean;
15689
16331
 
@@ -15699,6 +16341,7 @@ export namespace Guestfs {
15699
16341
  * unnecessarily.
15700
16342
  * @param device
15701
16343
  * @returns true on success, false on error
16344
+ * @since 1.3.1
15702
16345
  */
15703
16346
  zero_device(device: string): boolean;
15704
16347
 
@@ -15716,6 +16359,7 @@ export namespace Guestfs {
15716
16359
  * calling this, depending on your requirements.
15717
16360
  * @param directory
15718
16361
  * @returns true on success, false on error
16362
+ * @since 1.17.18
15719
16363
  */
15720
16364
  zero_free_space(directory: string): boolean;
15721
16365
 
@@ -15735,6 +16379,7 @@ export namespace Guestfs {
15735
16379
  * See also `guestfs_session_feature_available()`.
15736
16380
  * @param device
15737
16381
  * @returns true on success, false on error
16382
+ * @since 1.0.26
15738
16383
  */
15739
16384
  zerofree(device: string): boolean;
15740
16385
 
@@ -15745,6 +16390,8 @@ export namespace Guestfs {
15745
16390
  * @param pattern
15746
16391
  * @param path
15747
16392
  * @returns an array of returned strings, or NULL on error
16393
+ * @since 1.0.66
16394
+ * @deprecated In new code, use `guestfs_session_grep()` instead
15748
16395
  */
15749
16396
  zfgrep(pattern: string, path: string): string[];
15750
16397
 
@@ -15756,6 +16403,8 @@ export namespace Guestfs {
15756
16403
  * @param pattern
15757
16404
  * @param path
15758
16405
  * @returns an array of returned strings, or NULL on error
16406
+ * @since 1.0.66
16407
+ * @deprecated In new code, use `guestfs_session_grep()` instead
15759
16408
  */
15760
16409
  zfgrepi(pattern: string, path: string): string[];
15761
16410
 
@@ -15771,6 +16420,8 @@ export namespace Guestfs {
15771
16420
  * @param meth
15772
16421
  * @param path
15773
16422
  * @returns the returned string, or NULL on error
16423
+ * @since 1.0.59
16424
+ * @deprecated In new code, use `guestfs_session_file()` instead
15774
16425
  */
15775
16426
  zfile(meth: string, path: string): string;
15776
16427
 
@@ -15781,6 +16432,8 @@ export namespace Guestfs {
15781
16432
  * @param regex
15782
16433
  * @param path
15783
16434
  * @returns an array of returned strings, or NULL on error
16435
+ * @since 1.0.66
16436
+ * @deprecated In new code, use `guestfs_session_grep()` instead
15784
16437
  */
15785
16438
  zgrep(regex: string, path: string): string[];
15786
16439
 
@@ -15792,6 +16445,8 @@ export namespace Guestfs {
15792
16445
  * @param regex
15793
16446
  * @param path
15794
16447
  * @returns an array of returned strings, or NULL on error
16448
+ * @since 1.0.66
16449
+ * @deprecated In new code, use `guestfs_session_grep()` instead
15795
16450
  */
15796
16451
  zgrepi(regex: string, path: string): string[];
15797
16452
  }