koverstreet / bcachefs-tools

http://bcachefs.org
GNU General Public License v2.0
116 stars 88 forks source link

fusemount: unbreak build #275

Closed intelfx closed 3 months ago

intelfx commented 3 months ago

Commit 477670f4 changed capitalization of BTREE_ITER_* flags. Update cmd_fusemount.c accordingly to fix a build error with BCACHEFS_FUSE=1:

$ make BCACHEFS_FUSE=1
    [CC]     c_src/cmd_fusemount.o
c_src/cmd_fusemount.c: In function ‘bcachefs_fuse_setattr’:
c_src/cmd_fusemount.c:194:61: error: ‘BTREE_ITER_INTENT’ undeclared (first use in this function); did you mean ‘BTREE_ITER_intent’?
  194 |         ret = bch2_inode_peek(trans, &iter, &inode_u, inum, BTREE_ITER_INTENT);
      |                                                             ^~~~~~~~~~~~~~~~~
      |                                                             BTREE_ITER_intent
c_src/cmd_fusemount.c:194:61: note: each undeclared identifier is reported only once for each function it appears in
c_src/cmd_fusemount.c: In function ‘inode_update_times’:
c_src/cmd_fusemount.c:547:61: error: ‘BTREE_ITER_INTENT’ undeclared (first use in this function); did you mean ‘BTREE_ITER_intent’?
  547 |         ret = bch2_inode_peek(trans, &iter, &inode_u, inum, BTREE_ITER_INTENT);
      |                                                             ^~~~~~~~~~~~~~~~~
      |                                                             BTREE_ITER_intent
make: *** [Makefile:173: c_src/cmd_fusemount.o] Error 1

Fixes: 477670f4 ("Update bcachefs sources to 07f9a27f1969 bcachefs: add no_invalid_checks flag")