Sector/shpere
0
无    2020-09-03 12:29:10    1    0
myron

命令行:


usage: ./sector-fuse mountpoint [options]

general options:
-o opt,[opt...] mount options
-h --help print help
-V --version print version

FUSE options:
-d -o debug enable debug output (implies -f)
-f foreground operation
-s disable multi-threaded operation

-o allow_other allow access to other users
-o allow_root allow access to root
-o auto_unmount auto unmount on process termination
-o nonempty allow mounts over non-empty file/dir
-o default_permissions enable permission checking by kernel
-o fsname=NAME set filesystem name
-o subtype=NAME set filesystem type
-o large_read issue large read requests (2.4 only)
-o max_read=N set maximum size of read requests

-o hard_remove immediate removal (don't hide files)
-o use_ino let filesystem set inode numbers
-o readdir_ino try to fill in d_ino in readdir
-o direct_io use direct I/O
-o kernel_cache cache files in kernel
-o [no]auto_cache enable caching based on modification times (off)
-o umask=M set file permissions (octal)
-o uid=N set file owner
-o gid=N set file group
-o entry_timeout=T cache timeout for names (1.0s)
-o negative_timeout=T cache timeout for deleted names (0.0s)
-o attr_timeout=T cache timeout for attributes (1.0s)
-o ac_attr_timeout=T auto cache timeout for attributes (attr_timeout)
-o noforget never forget cached inodes
-o remember=T remember cached inodes for T seconds (0s)
-o intr allow requests to be interrupted
-o intr_signal=NUM signal to send on interrupt (10)
-o modules=M1[:M2...] names of modules to push onto filesystem stack

-o max_write=N set maximum size of write requests
-o max_readahead=N set maximum readahead
-o max_background=N set number of maximum background requests
-o congestion_threshold=N set kernel's congestion threshold
-o async_read perform reads asynchronously (default)
-o sync_read perform reads synchronously
-o atomic_o_trunc enable atomic open+truncate support
-o big_writes enable larger than 4kB writes
-o no_remote_lock disable remote file locking
-o no_remote_flock disable remote file locking (BSD)
-o no_remote_posix_lock disable remove file locking (POSIX)
-o [no_]splice_write use splice to write to the fuse device
-o [no_]splice_move move data while splicing to the fuse device
-o [no_]splice_read use splice to read from the fuse device

Module options:

[subdir]
-o subdir=DIR prepend this directory to all paths (mandatory)
-o [no]rellinks transform absolute symlinks to relative

[iconv]
-o from_code=CHARSET original encoding of file names (default: UTF-8)
-o to_code=CHARSET new encoding of the file names (default: UTF-8)


_____________________________________________________


# fusermount -uz /media/remote

# fuser -km /media/remote

# ./sector-fuse -o allow_other,nonempty /media/remote

_______________________________________________________

restorecon -Rv /home/mkanat

I removed ALL the rules from /etc/audit/audit.rules and things started working again, even with auditd running.


_______________________________________________________________

Will somebody who doesn't have audit installed and is still seeing this problem get sysrq-t when the box hangs so I can see where we're stuck.

To get sysrq-t you want to be root and do

echo 1 > /proc/sys/kerne/sysrq
echo t > /proc/sysrq-trigger

and then get /var/log/messages. If you cannot log in as root from the console ore something like that you can just edit /etc/sysctl.conf and set kernel.sysrq = 1 and then reboot, and then when the box hangs you can hit alt+sysrq(printscrn)+t and then get /var/log/messages.

______________________________________________________

I'm interested in the output from sysrq-t for anyone who has audit disabled and is able to hit this issue. I think you would just need to reproduce then

echo "7 7 7 7" > /proc/sys/kernel/printk
echo t > /proc/sysrq-trigger

Then attack /var/log/messages

_________________________________________________________

Pascal Terjan 2009-11-17 14:04:37 EST
When audit is enabled (for example by readahead-collector), there is a deadlock
when gvfs-fuse-daemon launches mount (through fuse lib) to update fstab, and
mount calls readlink to canonalize the mountpoint, and audit requests the
xattrs of this directory, which is mounted so fuse asks the daemon which is currently blocked in waitpid, waiting for mount to exit.

The simple patch is (in fuse) to not wait for mount to return when updating
fstab.

This is exactly the same bug that happened with ntfs-3g in bug 486619 but was only fixed in the internal copy of fuse code.

________________________________________________________________________

http://kerneltrap.org/mailarchive/linux-fsdevel/2009/11/12/6569103/thread

Explains the details. You should call mount with --no-canonicalize

______________________________________________________________________

Josef Bacik 2010-03-29 15:58:08 EDT
This bz depends on 577947, since we need mount to have the --no-canonicalize option. Once util-linux-ng is updated, fuse can be updated to 2.8.3 and this problem will go away.

________________________________________________________________

fuse-2.8.4-1.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/fuse-2.8.4-1.fc13

__________________________________________________________________
* Mon Apr 12 2010 Karel Zak <kzak@redhat.com> 2.16.2-9
- fix #577947 - need --no-canonicalize option for mount

bodhi - 2010-05-07 17:25:08
This update has been pushed to stable

https://admin.fedoraproject.org/updates/util-linux-ng-2.16.2-9.fc12?_csrf_token=76c49b8f4800907c7c5dc3f082bf3e5a4a9262d9

__________________________________________________________________

会议纪要
文档导航