]> xenbits.xensource.com Git - libvirt.git/commitdiff
lxc: drop compat code for mount constants
authorDaniel P. Berrangé <berrange@redhat.com>
Wed, 17 Jun 2020 10:59:19 +0000 (11:59 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Wed, 17 Jun 2020 17:00:13 +0000 (18:00 +0100)
Given our supported platform matrix, we can safely assume that
all the mount constants we need are defined by the system
headers.

Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
src/lxc/lxc_container.c
src/lxc/lxc_controller.c

index 77df49ea751715f9800c7d10ca8fd90e0a590dcc..b0a6deeb566d70f3707951a1d2b3eeb1dd40c42b 100644 (file)
@@ -527,23 +527,6 @@ lxcContainerRenameAndEnableInterfaces(virDomainDefPtr vmDef,
 /*_syscall2(int, pivot_root, char *, newroot, const char *, oldroot)*/
 extern int pivot_root(const char * new_root, const char * put_old);
 
-#ifndef MS_REC
-# define MS_REC          16384
-#endif
-
-#ifndef MNT_DETACH
-# define MNT_DETACH      0x00000002
-#endif
-
-#ifndef MS_PRIVATE
-# define MS_PRIVATE              (1<<18)
-#endif
-
-#ifndef MS_SLAVE
-# define MS_SLAVE                (1<<19)
-#endif
-
-
 static int lxcContainerUnmountSubtree(const char *prefix,
                                       bool isOldRootFS)
 {
index 734ac73210fa33f9330004f6a231f3fd4c57f83a..2e865e0e7c816289a3e001e0b10a77cf1c3351f2 100644 (file)
@@ -2053,14 +2053,6 @@ static int lxcSetPersonality(virDomainDefPtr def)
     return 0;
 }
 
-#ifndef MS_REC
-# define MS_REC          16384
-#endif
-
-#ifndef MS_SLAVE
-# define MS_SLAVE              (1<<19)
-#endif
-
 /* Create a private tty using the private devpts at PTMX, returning
  * the master in *TTYMASTER and the name of the slave, _from the
  * perspective of the guest after remounting file systems_, in