V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  yidinghe  ›  全部回复第 18 页 / 共 160 页
回复总数  3190
1 ... 14  15  16  17  18  19  20  21  22  23 ... 160  
2024 年 6 月 14 日
回复了 villivateur 创建的主题 问与答 一个经常会意外断电的机器,如何选取文件系统?
https://www.reddit.com/r/linux/s/3qA3EyiNsd
回答贴在下面:

Actual file system engineer here. All modern file systems are power fail tolerant. The only one that is regularly used that isn't is FAT, or ext2 if you still use that.

Now this just means your metadata will be consistent, any data that hasn't been written out to disk yet will be lost. ext3 will write all dirty data before it commits the journal every 5 seconds, so it is least likely to screw you, you will only lose the last 5 seconds worth of data. Ext4, btrfs and xfs all do this thing called delayed allocation, which means we avoid writing data until the last possible moment, so you could very well lose the last 5 minutes of data written but still have a consistent file system if your applications are not using fsync().

I know next to nothing about ZFS, but delayed allocation is a pretty universal file system feature so you can bet they do roughly the same thing, making them no better at being power fail tolerant than any other modern file system. The other thing about ZFS is that they do not have a fsck, so if you trust your ZFS file system developers to not make mistakes then go for it, but speaking as a file system developer, the kind of mistakes we make are never simple and easily recovered from.
2024 年 6 月 14 日
回复了 yanng 创建的主题 健康 肠胃特别差
喝茶都能拉肚子?体检没其他问题吗?
莫要挑起性别对立。谁管钱只看谁能管好钱。一个人若能管好自己的钱,便不怕对方乱花 ta 自身的钱。这是家庭经济维持下去的底线。
2024 年 6 月 14 日
回复了 Knuth 创建的主题 计算机 现在笔记本 CPU 是不是普遍过剩?
你这什么鬼逻辑。过不过剩,是看你要用的时候够不够用,而不是看你不用的时候够不够用。
2024 年 6 月 11 日
回复了 yidinghe 创建的主题 程序员 Qwen2 模型当中会输出一个奇怪的标签
我又发现可能会输出其他标签,例如 `<|endoftext|>`,`<|begin_end>` 等等
2024 年 6 月 11 日
回复了 yinft 创建的主题 生活 普通人这辈子的天花板是什么
普通人这辈子的天花板,就是健健康康的活到自然死亡。
2024 年 6 月 11 日
回复了 129duckflew 创建的主题 Java SpringDataJpa 如何实现行级数据权限控制?
没有通用的需求就没有通用的解决方案。比如说查订单,订单都在一张表里,而每个用户只能查自己的订单,这算不算行级权限控制?当然算。凡是有订单的系统,自然而然就把这个作为业务需求给实现了。
2024 年 6 月 10 日
回复了 izToDo 创建的主题 哔哩哔哩 很奇怪,近期 B 站审核尺度有明显放宽
有没有可能它是对内容推送做了分级的,未成年人不会被推送这些?
固态的职责就是保证落盘,存进去了就一定是持久化了,该是什么速度就是什么速度。
2024 年 6 月 10 日
回复了 AntonChekhov 创建的主题 问与答 [讨论] 如何形成取悦自己的习惯
如果想要彻底接纳自我,彻底放松,唯一的办法就是学习精神分析。推荐 B 站“罗明落 ny”的视频。
你把调用方的参数直接透传给数据库,不死才怪。首先防住登录接口,然后其他接口要有状态,根据调用方权限添加对应的查询条件,而且禁止调用方通过参数覆写这些条件。最后每个接口设置参数白名单,不在白名单中的参数过滤掉。
2024 年 6 月 9 日
回复了 star505 创建的主题 问与答 请问 onedrive 上传的文件会被审核以及和谐吗?
首先成人内容不要分享出去,其次要保证里面不包含非法内容。具体你可以问 Google Gemini:美国法律禁止公民在网盘中存储哪些内容?
跑就是了
2024 年 6 月 6 日
回复了 zhouqian 创建的主题 汽车 不认真开车的人中玩手机的太多了
@z836454898 电脑和手机不会发出太阳那种损伤眼睛的强光。而且据我所知,地球上目前尚未出现过因为屏幕(当然我指的是符合国家标准的正常屏幕)光线而导致眼睛瞎掉的案例。有的人会因为躺着看手机或其他不正确的姿势导致视网膜受损,但这是身体姿势问题,与光线无关。
1 ... 14  15  16  17  18  19  20  21  22  23 ... 160  
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   819 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 52ms · UTC 21:21 · PVG 05:21 · LAX 14:21 · JFK 17:21
♥ Do have faith in what you're doing.