[Bug 240157] cp has no ability to preserve extended attributes when copying a file

2022-12-17 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=240157

--- Comment #7 from John Higgins  ---
(In reply to Yuri from comment #6)
Thanks for the help :) I got a test working for the scifinder patch using Kyua.
The only problem is that I'm not sure what to do when extended attributes are
not enabled for the current file system. Is there a way to conditionally run
tests or should I set the test to automatically succeed if the system doesn't
support extended attributes?

-- 
You are receiving this mail because:
You are the assignee for the bug.


[Bug 240157] cp has no ability to preserve extended attributes when copying a file

2022-12-16 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=240157

--- Comment #6 from Yuri  ---
(In reply to John Higgins from comment #5)
Initial post shows lsextattr command, you can lookup other related commands
doing `man lsextattr`.

-- 
You are receiving this mail because:
You are the assignee for the bug.


[Bug 240157] cp has no ability to preserve extended attributes when copying a file

2022-12-16 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=240157

John Higgins  changed:

   What|Removed |Added

 CC||johnmatthigg...@gmail.com

--- Comment #5 from John Higgins  ---
(In reply to Conrad Meyer from comment #4)
I'm new to this project and I'd love to work on this.

I applied the patch mentioned in the above conversation to the current source
code. I ran the 'cp' tests and all 11 of them succeeded. I was going to start
writing tests for verifying that extended attributes are copied but I can't
seem to find any shell commands that interact with them. I've read some of the
documentation and it seems that you can use the 'zfs' command to figure out if
a file system has extended attributes turned on but it doesn't allow you to set
them on a per file basis.

Does anyone have any advice on what I should be using?

-- 
You are receiving this mail because:
You are the assignee for the bug.


[Bug 240157] cp has no ability to preserve extended attributes when copying a file

2019-08-28 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=240157

--- Comment #4 from Conrad Meyer  ---
...although the git repos are less useful than than just the patches.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


[Bug 240157] cp has no ability to preserve extended attributes when copying a file

2019-08-28 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=240157

--- Comment #3 from Conrad Meyer  ---
It seems they have created github repos for the modified versions:

https://github.com/scifinder/cp
https://github.com/scifinder/find

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


[Bug 240157] cp has no ability to preserve extended attributes when copying a file

2019-08-28 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=240157

Andrey V. Elsukov  changed:

   What|Removed |Added

 CC||a...@freebsd.org

--- Comment #2 from Andrey V. Elsukov  ---
Some time ago I saw patches for find(1) and cp(1). If someone wants to look at,
you can find them here: 

https://gist.github.com/scifinder
https://rxlab.org/text/?id=33

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


[Bug 240157] cp has no ability to preserve extended attributes when copying a file

2019-08-27 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=240157

Conrad Meyer  changed:

   What|Removed |Added

URL||https://bugs.freebsd.org/bu
   ||gzilla/show_bug.cgi?id=2401
   ||46

--- Comment #1 from Conrad Meyer  ---
We don't have a good "Related" bug field and 240146 doesn't have a blocking
relationship with this one, so I just stuck it in the URL field for easier
lookup.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


[Bug 240157] cp has no ability to preserve extended attributes when copying a file

2019-08-27 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=240157

Conrad Meyer  changed:

   What|Removed |Added

 CC||c...@freebsd.org
 Status|New |Open

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


[Bug 240157] cp has no ability to preserve extended attributes when copying a file

2019-08-27 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=240157

Bug ID: 240157
   Summary: cp has no ability to preserve extended attributes when
copying a file
   Product: Base System
   Version: CURRENT
  Hardware: Any
OS: Any
Status: New
  Severity: Affects Many People
  Priority: ---
 Component: bin
  Assignee: b...@freebsd.org
  Reporter: s...@rogue-research.com

I was very surprised to see that neither 'cp -p' nor 'cp -a' preserve the
extended attributes of a file.

example:

root@freenas[/test]# lsextattr user A.txt 
A.txt   DosStream.com.apple.TextEncoding:$DATA  DosStream.AFP_Resource:$DATA   
DosStream.AFP_AfpInfo:$DATA DOSATTRIB  
DosStream.com.apple.lastuseddate#PS:$DATA


root@freenas[/test]# cp -a A.txt A2.txt  


root@freenas[/test]# lsextattr user A2.txt
A2.txt


EAs sometimes contain important data, and there should surely be some kind of
option to preserve them when copying a file.

In contrast, macOS's cp -p does preserve EAs.

See also #240146 for related bug against the cp man page for saying nothing.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"