~registry/lvm2/master

« back to all changes in this revision

Viewing changes to lib/cache/lvmetad.h

  • Committer: Alasdair G Kergon
  • Date: 2013-01-04 23:45:22 UTC
  • Revision ID: git-v1:41e7f45258555bf28871a8243487a12751932842
lvmetad: rename device vars and move _token_update

Move _token_update() to avoid the need for _lvmetad_send prototype.

Use 'dev' consistently for a struct device * variable.
Use 'devno' for a dev_t.

Show diffs side-by-side

added added

removed removed

Lines of Context:
97
97
 * number on the cached and on the discovered PV match but the metadata content
98
98
 * does not.
99
99
 */
100
 
int lvmetad_pv_found(const struct id *pvid, struct device *device,
 
100
int lvmetad_pv_found(const struct id *pvid, struct device *dev,
101
101
                     const struct format_type *fmt, uint64_t label_sector,
102
102
                     struct volume_group *vg, activation_handler handler);
103
103
 
154
154
#    define lvmetad_release_token()     do { } while (0)
155
155
#    define lvmetad_vg_update(vg)       (1)
156
156
#    define lvmetad_vg_remove(vg)       (1)
157
 
#    define lvmetad_pv_found(pvid, device, fmt, label_sector, vg, handler)      (1)
 
157
#    define lvmetad_pv_found(pvid, dev, fmt, label_sector, vg, handler) (1)
158
158
#    define lvmetad_pv_gone(devno, pv_name, handler)    (1)
159
159
#    define lvmetad_pv_gone_by_dev(dev, handler)        (1)
160
160
#    define lvmetad_pv_list_to_lvmcache(cmd)    (1)