I got this error from rsync while trying to copy a device with a lot of hardlinks to a btrfs volume: Due to some filesystem corruption on my source device, I had a very long file as a symlink target that btrfs wasn''t able to recreate. Mind you, in this case it''s clearly not something I need, but is it expected/known that ext4 can store longer filenames than btrfs? -rw-r--r-- 1 root root 8192 Dec 12 1997 system.fvwm2rc95.gz lrwxrwxrwx 1 root root 4095 Aug 2 2010 system.fvwmrc -> was scrubbed...\n"?"URL: %(url)s\n"?msgstr ""??#: Mailman/Handlers/Scrubber.py:129?msgid "no subject"?msgstr "??? ????"??#: Mailman/Handlers/Scrubber.py:130?msgid "no date"?msgstr ""??#: Mailman/Handlers/Scrubber.py:131?msgid "unknown sender"?msgstr ""??#: Mailman/Handlers/Scrubber.py:133?msgid ""?"An embedded message was scrubbed...\n"?"From: %(who)s\n"?"Subject: %(subject)s\n"?"Date: %(date)s\n"?"Size: %(size)s\n"?"Url: %(url)s\n"?msgstr ""??#: Mailman/Handlers/Scrubber.py:159?msgid ""?"A non-text attachment was scrubbed...\n"?"Name: %(filename)s\n"?"Type: %(ctype)s\n"?"Size: %(size)d bytes\n"?"Desc: %(desc)s\n"?"Url : %(url)s\n"?msgstr ""??#: Mailman/Handlers/ToDigest.py:140?msgid "%(realname)s Digest, Vol %(volume)d, Issue %( issue)d"?msgstr ""??#: Mailman/Handlers/ToDigest.py:178?msgid "digest header"?msgstr ""??#: Mailman/Handlers/ToDigest.py:181?msgid "Digest Header"?msgstr ""??#: Mailman/Handlers/ToDigest.py:194?msgid "Today''s Topics:\n"?msgstr ""??#: Mailman/Handlers/ToDigest.py:261?msgid "Today''s Topics (%(msgcount)d messages)"?msgstr ""??#: Mailman/Handlers/ToDigest.py:287?msgid "digest footer"?msgstr ""??#: Mailman/Handlers/ToDigest.py:290?msgid "Digest Footer"?msgstr ""??#: Mailman/Handlers/ToDigest.py:304?msgid "End of "?msgstr ""??#: Mailman/ListAdmin.py:279?msgid "Posting of your message titled \"%(subject)s\""?msgstr ""??#: Mailman/ListAdmin.py:299?msgid "Forward of moderated message"?msgstr ""??#: Mailman/ListAdmin.py:356?msgid "New subscription request to list %(realname)s from %(addr)s"?msgst r ""??#: Mailman/ListAdmin.py:381?msgid "Subscription request"?msgstr ""??#: Mailman/ListAdmin.py:411?msgid "New unsubscription request from %(realname)s by %(addr)s"?msgstr ""??#: Mailman/ListAdmin.py:436?msgid "Unsubscription request"?msgstr ""??#: Mailman/ListAdmin.py:462?msgid "Original Message"?msgstr ""??#: Mailman/ListAdmin.py:465?msgid "Request to mailing list %(realname)s rejected"?msgstr ""??#: Mailman/MTA/Aliases.py:40?msgid ""?"To finish creating your mailing list, you must edit your\n"?"/etc/aliases (or equivalent) file by adding the following lines:\n"?"\n"?"## %(listname)s mailing list\n"?"## created: %(date)s %(user)s\n"?"%(list)s \"|%(wrapper)s post %(listname)s\"\n"?"%(admin)s \"|%(wrapper)s mailowner %(listname)s\"\n"?"%(request)s \"|%(wrapper)s mailcmd %(listname)s\"\ n"?"%(owner)s %(listname)s-admin\n"?msgstr ""??#: Mailman/MTA/Aliases.py:63?msgid ""?"To finish removing your mailing list, you must edit your\n"?"/etc/aliases (or equivalent) file by removing the following lines:\n"?"\n"?"%(list)s \"|%(wrapper)s post %(listname)s\"\n"?"%(admin)s \"|%(wrapper)s mailowner %(listname)s\"\n"?"%(request)s \"|%(wrapper)s mailcmd %(listname)s\"\n"?"%(owner)s %(listname)s-admin\n"?msgstr ""?"??? ????, ????? ????????? ??????? ???????? ?????? ????????\n"?"??? ?????????? ??????? ? ????? ????? /etc/aliases ????????? ??????:\n"?"\n"?"%(list)s \"|%(wrapper)s post %(listname)s\"\n"?"%(admin)s \"|%(wrapper)s mailowner %(listname)s\"\n"?"%(request)s \"|%(wrapper)s mailcmd %(listname)s\"\n"?"%(owner)s %(listname)s-admin\n"??#: Mailman/MTA/Manual.py:55?msgid ""?"The maili ng list `%(listname)s'' has been created via the through-the-web\n"?"interface. In order to complete the activation of this mailing list, the\n"?"proper /etc/aliases (or equivalent) file must be updated. The program\n"?"`newaliases'' may also have to be run.\n"?"\n"?"Here are the entries for the /etc/aliases file:\n"?msgstr ""??#: Mailman/MTA/Manual.py:65?msgid ""?"\n"?"To finish creating your mailing list, you must edit your /etc/aliases (or\n"?"equivalent) file by adding the following lines, and possibly running the\n"?"`newaliases'' program:\n"?"\n"?"## %(listname)s mailing list"?msgstr ""??#: Mailman/MTA/Manual.py:83?msgid "Mailing list creation request for list %(listname)s"?msgstr ""??#: Mailman/MTA/Manual.py:98?msgid ""?"The mailing list `%(listname)s'' has been removed via the thro ugh-the-web\n"?"interface. In order to complete the de-activation of this mailing list, "?"the\n"?"appropriate /etc/aliases (or equivalent) file must be updated. -rw-r--r-- 1 root root 6690 Nov 22 1997 system.steprc-menu.gz Copy gave this error: rsync: symlink "/mnt/dshelf3/backup/saroumane/20020317_oldload/usr/share/doc/menu/examples/system.fvwmrc" -> "was scrubbed...\n"\#012"URL: %(url)s\n"\#012msgstr ""\#012\#012#: Mailman/Handlers/Scrubber.py:129\#012msgid "no subject"\#012msgstr "\#302\#305\#332 \#324\#305\#315\#331"\#012\#012#: Mailman/Handlers/Scrubber.py:130\#012msgid "no date"\#012msgstr ""\#012\#012#: Mailman/Handlers/Scrubber.py:131\#012msgid "unknown sender"\#012msgstr ""\#012\#012#: Mailman/Handlers/Scrubber.py:133\#012msgid ""\#012"An embedded message was scrubbed...\n"\#012"From: %(who)s\n"\#012"Subject: %(subject)s\n"\#012"Date: %(date)s\n"\#012"Size: %(size)s\n"\#012"Url: %(url)s\n"\#012msgstr ""\#012\#012#: Mailman/Handlers/Scrubber.py (...) In order to complete the de-activation of this mailing list, "\#012"the\n"\#012"appropriate /etc/aliases (or equivalent) file must be updated. " failed: File name too long (36) Marc -- "A mouse is a device used to point at the xterm you want to type in" - A.S.R. Microsoft is to operating systems .... .... what McDonalds is to gourmet cooking Home page: http://marc.merlins.org/ -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
David Sterba
2012-Sep-10 17:16 UTC
Re: Symlink to a long filename "filename too long" error
On Mon, Sep 10, 2012 at 09:34:06AM -0700, Marc MERLIN wrote:> Due to some filesystem corruption on my source device, I had a very long file as a symlink > target that btrfs wasn''t able to recreate. > Mind you, in this case it''s clearly not something I need, but is it > expected/known that ext4 can store longer filenames than btrfs?Btrfs can store symlink targets up to it''s inline limit, 3917. xfs has this limit hardcoded as 1024. ext4 has fast and non-fast symlink storage, based on the target length, so it''s able to store the maximum PATH_MAX size into a full block for the non-fast case. david -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Marc MERLIN
2012-Sep-10 17:45 UTC
Re: Symlink to a long filename "filename too long" error
On Mon, Sep 10, 2012 at 07:16:30PM +0200, David Sterba wrote:> On Mon, Sep 10, 2012 at 09:34:06AM -0700, Marc MERLIN wrote: > > Due to some filesystem corruption on my source device, I had a very long file as a symlink > > target that btrfs wasn''t able to recreate. > > Mind you, in this case it''s clearly not something I need, but is it > > expected/known that ext4 can store longer filenames than btrfs? > > Btrfs can store symlink targets up to it''s inline limit, 3917. xfs has > this limit hardcoded as 1024. ext4 has fast and non-fast symlink > storage, based on the target length, so it''s able to store the maximum > PATH_MAX size into a full block for the non-fast case.Thanks for explaining. For normal use, 3917 seems more than adequate :) Marc -- "A mouse is a device used to point at the xterm you want to type in" - A.S.R. Microsoft is to operating systems .... .... what McDonalds is to gourmet cooking Home page: http://marc.merlins.org/ -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html