Skip to contentSkip to conversation

btrfs-progs: fixes on top of latest integration branch

PATCH In review Anand Jain 2 participants 6 messages May 19, 2016

Subsystems (2)
lore
Share & tools
lore

Anand Jain

author
#0 lore raw

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
author
#1 lore raw

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

Fixes btrfs-progs: udev: add rules for dm devices
---
 Makefile.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Makefile.in +1 -1
index 47e73c9fbc4e..238dd59badaf 100644
@@ -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
#2 lore raw

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 1

Fixes btrfs-progs: udev: add rules for dm devices

ifneq ($(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.

author
#3 lore raw

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
index 238dd59badaf..50b2ee5d8eba 100644
@@ -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
author
#4 lore raw

PATCH 3/3 btrfs-progs: clean up commands.h

In reply to Anand Jain

This 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
index 2da093bf81a3..94229c112bc0 100644
@@ -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
#5 lore raw
In reply to Anand Jain
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 up commands.h

2 and 3 applied, thanks. It's absolutelly ok to group such small misc fixups.