btrfs-progs: fixes on top of latest integration branch
Subsystems (2)
cover btrfs-progs: fixes on top of latest integration branch
Hi David,
Your latest branch integration-20160517 is failing with make install, 1/3 will fix it. While here can you also apply 2/3 and 3/3 as below, however they aren't related though.
Thanks
Anand Jain (3):
btrfs-progs: fix make install failure
btrfs-progs: add clean-all to the usage
btrfs-progs: clean up commands.h
Makefile.in | 3 ++- commands.h | 6 ------ 2 files changed, 2 insertions(+), 7 deletions(-)
Signature · 1 line
2.7.0
PATCH 1/3 btrfs-progs: fix make install failure
/usr/bin/install -c -m644 -d 64-btrfs-dm.rules /usr/lib/udev/rules.d /usr/bin/install: cannot create directory ‘64-btrfs-dm.rules’: File exists Makefile:400: recipe for target 'install' failed
make: *** [install] Error 1
--- Makefile.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Makefile.in +1 -1
@@ -408,7 +408,7 @@ install: $(libs) $(progs_install) $(INSTALLDIRS) $(INSTALL) -m755 -d $(DESTDIR)$(incdir) $(INSTALL) -m644 $(headers) $(DESTDIR)$(incdir) ifneq ($(udevdir),) - $(INSTALL) -m644 -d $(udev_rules) $(DESTDIR)$(udevruledir) + $(INSTALL) -m644 $(udev_rules) $(DESTDIR)$(udevruledir) endif install-static: $(progs_static) $(INSTALLDIRS)
Signature · 1 line
2.7.0
Re: [PATCH 1/3] btrfs-progs: fix make install failure
Makefile.in install: $(libs) $(progs_install) $(INSTALLDIRS) · line 412
Quoted 11 lines · Anand Jain
/usr/bin/install-c -m644 -d 64-btrfs-dm.rules/usr/lib/udev/rules.d/usr/bin/install: cannot create directory ‘64-btrfs-dm.rules’: File exists Makefile:400: recipe for target 'install' failed
make: *** [install] Error 1Fixes btrfs-progs: udev: add rules for dm devicesifneq ($(udevdir),)
Makefile.in +1
-1- $(INSTALL) -m644 -d $(udev_rules) $(DESTDIR)$(udevruledir) + $(INSTALL) -m644 $(udev_rules) $(DESTDIR)$(udevruledir) endif
We have to conditionally create the directory, so extra -d on the udevrule or -D is needed. Looking at the patch we have in openSUSE, it does the former. I'll update the patch.
PATCH 2/3 btrfs-progs: add clean-all to the usage
In reply to Anand Jain--- Makefile.in | 1 + 1 file changed, 1 insertion(+)
Makefile.in +1 -0
@@ -6,6 +6,7 @@ # test run the full testsuite # install install to default location (/usr/local) # clean clean built binaries (not the documentation) +# clean-all clean as above, clean docs and generated files # # Tuning by variables (environment or make arguments): # V=1 verbose, print command lines (default: quiet)
Signature · 1 line
2.7.0
PATCH 3/3 btrfs-progs: clean up commands.h
In reply to Anand JainThis function is declared in utils.h so remove it
from commands.h
int test_issubvolume(const char *path);
This function does not exists delete the declaration get_subvol_name(char *mnt, char *full_path);
--- commands.h | 6 ------ 1 file changed, 6 deletions(-)
commands.h +0 -6
@@ -125,10 +125,4 @@ int cmd_dump_super(int argc, char **argv);int cmd_debug_tree (int argc,char **argv);int cmd_rescue (int argc,char **argv); -/* subvolume exported functions */ -int test_issubvolume (const char *path); - -/* send.c */ -char *get_subvol_name (char *mnt,char *full_path); -#endif
Signature · 1 line
2.7.0
Quoted 8 lines · Anand Jain
Your latest branch integration-20160517 is failing with make install, 1/3 will fix it. While here can you also apply 2/3 and 3/3 as below, however they aren't related though.
btrfs-progs: fix make install failure
btrfs-progs: add clean-all to the usage
btrfs-progs: clean upcommands.h
2 and 3 applied, thanks. It's absolutelly ok to group such small misc fixups.