Solaris의 tar와 Linux의 tar에 차이점이 있습니까?

moondance의 이미지

어떤 경우에는 서로 호환이 안되는 경우가 발생하는 것 같습니다만 이유가 어디에 있는 것인지 알고 싶습니다.

moondance~

dalgarak의 이미지

오래전에 들었던 지라, 지금은 다를 수도 있습니다.
기억력이 그다지 좋지 못한지라..-_-;;; 지적 부탁 드립니다.

원래 tar의 구조상, 전체 경로(path)를 담을 수 있는 길이가 99자로 한정되도록 설계되었다고 합니다.
그래서 이 경로의 길이가 100자 이상일때도 무난하게 처리하기 위한 확장법을 tar에 적용시키게 되었는데..

GNU tar에 있던 path 확장 방법과, SUN tar에 적용된 path 확장 방법이 달라서,
tar에 포함된 전체 경로의 길이가 99자를 넘어갈 경우 tar 파일의 비호환 문제가 발생한다고 알고 있습니다. :)
(아주 구버전의 SUN tar의 경우 path 확장이 안된다고 알고 있습니다.)

hurryon의 이미지

moondance wrote:
어떤 경우에는 서로 호환이 안되는 경우가 발생하는 것 같습니다만 이유가 어디에 있는 것인지 알고 싶습니다.

moondance~

대표적으로 MySQL 의 배포 타볼패키지들은 GNU tar 을 요구하더군요. 하지만 어떠한 이유에서 호환이 되는지는 저두 궁금.

:roll:

dalgarak의 이미지

아마 이걸껍니다..
경로를 포함한 파일 전체 길이라고 말을 해야 하는데, 위에서는 대뜸 경로 길이라고 해버렸군요.. 쩝. :)

솔라리스 2.5.1 가이드에서 찾은 내용입니다. 구버전 tar 겠지요.

Quote:
Note - The tar(1TSOL) command is limited by directory depth: the directory name cannot be longer than 155 characters, and the filename cannot be longer than 100 characters.

...디렉토리 명은 155자를 넘어갈 수 없고, 파일명은 100자를 넘어갈 수 없군요.

Quote:
On Solaris, you may run into trouble even before you get the MySQL distribution unpacked! Solaris tar can't handle long file names, so you may see an error like this when you unpack MySQL:

x mysql-3.22.12-beta/bench/Results/ATIS-mysql_odbc-NT_4.0-cmp-db2,\
informix,ms-sql,mysql,oracle,solid,sybase, 0 bytes, 0 tape blocks
tar: directory checksum error

http://www.mysql.com/documentation/mysql/bychapter/manual_Installing.html#Solaris

MySQL 레퍼런스 매뉴얼에서 긁었습니다.

아마 구버전에서 긴 파일명을 지원하지 않다보니, 개선된 이후에도 그냥 안전하게 GNU tar를 쓰라고 권장하는것이지 않을까 추측해봅니다.

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.