c2tmac.c 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. int
  21. main(int argc, char *argv[])
  22. {
  23. #define p(m, v, fmt) printf(".ds %s " fmt "\n", m, v)
  24. #define pstr(m) p(#m, m, "%s")
  25. #define pint(m) p(#m, m, "%d")
  26. pstr(AUFS_VERSION);
  27. pstr(AUFS_XINO_FNAME);
  28. pstr(AUFS_XINO_DEFPATH);
  29. pint(AUFS_DIRWH_DEF);
  30. pstr(AUFS_WH_PFX);
  31. pint(AUFS_WH_PFX_LEN);
  32. pstr(AUFS_WKQ_NAME);
  33. pint(AUFS_NWKQ_DEF);
  34. pstr(AUFS_WH_DIROPQ);
  35. pstr(AUFS_WH_BASE);
  36. pstr(AUFS_WH_PLINKDIR);
  37. pint(AUFS_MFS_SECOND_DEF);
  38. pint(AUFS_RDBLK_DEF);
  39. pint(AUFS_RDHASH_DEF);
  40. return 0;
  41. }