c2sh.c 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * Copyright (C) 2005-2009 Junjiro Okajima
  3. *
  4. * This program, aufs is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation; either version 2 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program; if not, write to the Free Software
  16. * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  17. */
  18. #include <stdio.h>
  19. #include <linux/aufs_type.h>
  20. #define AUFS_WH_PFX2 AUFS_WH_PFX AUFS_WH_PFX
  21. int
  22. main(int argc, char *argv[])
  23. {
  24. #define p(m, v, fmt) printf("%s=" fmt "\n", m, v)
  25. #define pstr(m) p(#m, m, "%s")
  26. #define pint(m) p(#m, m, "%d")
  27. pstr(AUFS_VERSION);
  28. pint(AUFS_SUPER_MAGIC);
  29. printf("AUFS_SUPER_MAGIC_HEX=0x%x\n", AUFS_SUPER_MAGIC);
  30. pstr(AUFS_WH_PFX);
  31. pstr(AUFS_WH_PFX2);
  32. pstr(AUFS_WKQ_NAME);
  33. pstr(AUFS_WH_DIROPQ);
  34. pstr(AUFS_WH_BASE);
  35. pstr(AUFS_WH_PLINKDIR);
  36. pstr(AUFS_WH_ORPHDIR);
  37. //pint(AUFS_BRANCH_MAX);
  38. return 0;
  39. }